For 2012, I'm taking the $2500 American Opportunity Credit (AOC) for payment of >$4,000 college tuition/fees/books for my dependent child.
I used proceeds from my 529 college savings plans to pay these Qualified Educational Expenses (QEEs), as well as room and board.
Therefore per IRS Pub 970, Page 56, Example 2, I need to compute the taxable portion of gain from the distributions from the 529 plans for the $4000 toward taking the AOC, to apply as Other Income to my child's return.
The 1099-Q I assume will not separate how much of the total distribution and total gain was used toward tuition/fees/books, and how much was used toward room/board. Therefore I assume I'll have to prorate these amounts.
Please verify that my computational algorithm for computation of taxable gain is correct:
For a total distribution and gain on 1099-Q that covers tuition/fees/books/room/board, compute the prorated amount of distribution and gain for tuition/fees/books only (QEEs for use in taking the AOC), as the ratio of the amounts for tuition/fees/books to total.
The taxable gain due to taking the AOC is computed as:
$4000 x Prorated Gain (for tuition/fees/books only) / Prorated Distribution (for tuition fees/books only)
The numbers:
Total Distribution (tuition/fees/books/room/board): $15584 Total Gain (tuition/fees/books/room/board): $2334
Prorated Distribution (tuition/fees/books only): $5099 Prorated Gain (tuition/fees/books only): $761
Taxable Gain due to taking AOC: $4000 x $761 / $5099 = $597, reported on child's return as Other Income
Correct?