Advanced premium tax credit repayment and American Opportunity credit stacking
I'm a bit confused about how credits stack. I have an amount of advanced premium tax credit that I have to repay, but otherwise I have no tax due. Normally, if you have no tax bill, the larger piece of the American Opportunity tax credit wouldn't apply, I thought, because it's not refundable, so if you have a tax liability of $0, you can't take that credit. However, because I have an APTC repayment amount from schedule 2, suddenly I can take the full AOTC. It seems that if I had correctly estimated my income and had no APTC to repay, I would not have been able to take most of the AOTC. Am I missing something? Does this make sense? I understand that the APTC is refundable, but as is $1000 of the AOTC, but it's the rest of the AOTC stacking with the APTC repayment that is confusing me.