529 withdrawal earnings allocation, 2025 · Calculation guide

2025 qualified tuition program, ordinary higher-education distribution for one beneficiary.

Rule edition · 2025.

Calculation guide

Subtract tax-free aid and expenses used for education credits before entering adjusted qualifying expenses. Use total distributions and earnings for this calculation. The result is income before any additional tax.

Q = E × min(1, A / D); T = E − Q.

Inputs

Gross distributions

Example entry 10000 USD. Minimum 0.01.

Earnings in distributions

Example entry 2000 USD.

Adjusted qualified education expenses

Example entry 7500 USD.

Worked example

InputValue
Gross distributions10,000 USD
Earnings in distributions2,000 USD
Adjusted qualified education expenses7,500 USD
ResultValue
Taxable earnings500 USD
Tax-free earnings1,500 USD

Calculation steps

Taxable earnings = (Earnings in distributions × (1 − min(1, (Adjusted qualified education expenses ÷ Gross distributions))))

(2,000 × (1 − min(1, (7,500 ÷ 10,000)))) = 500 USD

Tax-free earnings = (Earnings in distributions − Taxable earnings)

(2,000 − 500) = 1,500 USD

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Gross distributions10,000 USD11,000 USDTaxable earnings500 USD636.363636 USD
Earnings in distributions2,000 USD2,200 USDTaxable earnings500 USD550 USD
Adjusted qualified education expenses7,500 USD8,250 USDTaxable earnings500 USD350 USD
529 withdrawal earnings allocation, 2025 →

Sources