Deductions & credits

I've linked one of the IRS info pages below.  It says that you can only exclude one home every two years.  I don't see how it would be possible to exclude two at once.  Both houses  seem to qualify since you owned  and lived in each for two of the previous five years before selling them. I guess you would have to choose which one is more beneficial to claim.   Unless there is something I misunderstood or some issue that I don't know about.

https://www.irs.gov/taxtopics/tc701.html