Traditional IRA basis after Roth conversion

My wife has a traditional IRA that she uses only for back door Roth conversions each year she’s over the income limit for regular contributions. Can someone explain how the traditional IRA basis changes each year after the conversions or when I am asked for basis in TurboTax do I add up her nondeductible contributions to that traditional IRA for each year, pretty sure I have entered that wrong a few times and it has messed up some of our form 8606 thank you