Get your taxes done using TurboTax

Try the following,

set your earned income to $40,000.

make an IRA contribution and elect no deduction.

It will ask you for your prior basis.

reset your earned income to correct amount.

@d4vidf05