Deductions & credits

Did you use TurboTax to file those years?

You can't make a non-deductible contribution to an IRA and end up with a zero basis,

unless you did a conversion/distribution of the total value of the IRA,.

@cmancero