Per IRS Publication 970 Tax Benefits for Education:
You can't claim the American opportunity credit for 2020 if any of the following apply:
Note. You also can't claim the Tuition and Fees Deduction if your filing status is Married Filing Separate.
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the document at the time it is accessed.