Get your taxes done using TurboTax

1250 gain is not ordinary income. it is part of the capital gain realized on the sale of depreciable real estate. 

it in effect can be offset by short-term capital loss 

example

capital gain $500 of which $100 is 1250 gain

stcl $450. net capital gain $50 but no 1250 recapture. 

 

there is a worksheet for this in the schedule D instructions.