<p>There are very clear rules as to how much is tax exempt:</p>
<p>Here is the official IRS publication on this issue</p>
<p>[Publication</a> 970 (2010), Tax Benefits for Education](<a href=“Publication 970 (2022), Tax Benefits for Education | Internal Revenue Service”>Publication 970 (2022), Tax Benefits for Education | Internal Revenue Service)</p>
<p>*
The part of a distribution representing the amount paid or contributed to a QTP does not have to be included in income. This is a return of the investment in the plan.</p>
<p>The designated beneficiary generally does not have to include in income any earnings distributed from a QTP if the total distribution is less than or equal to adjusted qualified education expenses (defined under Figuring the Taxable Portion of a Distribution , below). *</p>
<p>In other words, the distribution is less than the qualified education expenses, you are OK. This publication gives an example</p>
<p>
[quote]
Earnings and return of investment. You will receive a Form 1099-Q, Payments From Qualified Education Programs (Under Sections 529 and 530), from each of the programs from which you received a QTP distribution in 2010. The amount of your gross distribution (box 1) shown on each form will be divided between your earnings (box 2) and your basis, or return of investment (box 3). Form 1099-Q should be sent to you by January 31, 2011.</p>
<p>Figuring the Taxable Portion of a Distribution</p>
<p>To determine if total distributions for the year are more or less than the amount of qualified education expenses, you must compare the total of all QTP distributions for the tax year to the adjusted qualified education expenses.
Adjusted qualified education expenses. This amount is the total qualified education expenses reduced by any tax-free educational assistance. Tax-free educational assistance includes:</p>
<pre><code>*
The tax-free part of scholarships and fellowships (see chapter 1),
*
Veterans’ educational assistance (see chapter 1),
*
Pell grants (see chapter 1),
*
Employer-provided educational assistance (see chapter 11), and
*
Any other nontaxable (tax-free) payments (other than gifts or inheritances) received as educational assistance.
</code></pre>
<p>Taxable earnings. Use the following steps to figure the taxable part.</p>
<p>1.</p>
<pre><code> Multiply the total distributed earnings shown in box 2 of Form 1099-Q by a fraction. The numerator is the adjusted qualified education expenses paid during the year and the denominator is the total amount distributed during the year.
</code></pre>
<p>2.</p>
<pre><code> Subtract the amount figured in (1) from the total distributed earnings. The result is the amount the beneficiary must include in income. Report it on Form 1040 or Form 1040NR, line 21.
</code></pre>
<p>Example 1.</p>
<p>In 2004, Sara Clarke’s parents opened a savings account for her with a QTP maintained by their state government. Over the years they contributed $18,000 to the account. The total balance in the account was $27,000 on the date the distribution was made. In the summer of 2010, Sara enrolled in college and had $8,300 of qualified education expenses for the rest of the year. She paid her college expenses from the following sources.
Gift from parents $1,600<br>
Partial tuition scholarship (tax-free) 3,100<br>
QTP distribution 5,300 </p>
<p>Before Sara can determine the taxable part of her QTP distribution, she must reduce her total qualified education expenses by any tax-free educational assistance.
Total qualified education expenses $8,300<br>
Minus: Tax-free educational assistance −3,100<br>
Equals: Adjusted qualified<br>
education expenses (AQEE) $5,200 </p>
<p>Since the remaining expenses ($5,200) are less than the QTP distribution, part of the earnings will be taxable.</p>
<p>Sara’s Form 1099-Q shows that $950 of the QTP distribution is earnings. Sara figures the taxable part of the distributed earnings as follows.
1. $950 (earnings) </p>