Question on American Opportunity Credit

Helping my S fill this part out of taxes (since we actually paid, not him). The back of the 1098 from his school lists the actual amount paid in cash, and then the amount in loan. Can he get credit for the entire amount, or just the cash part? (the loan was paid off six months later, if that makes a difference.) thank in advance to any experts.

Last time we did this, there weren’t loans, so figuring out what part counted was easier.

The loan money used to pay QEE counts for the AOC.

Think of it this way: He has to pay those loans back, so it really is his/your money going toward the QEE.

Thanks! that is what I was thinking, but I wasn’t sure.