Room & Board refunds, 529s and taxes

All correct. If recontributed within 60 days of receipt, it’s as if the refunded 529 dollars never came out of the 529 account the first time.

See page 58 of IRS Pub 970: https://www.irs.gov/pub/irs-pdf/p970.pdf