Retirement tax questions

Actually, my initial query said that I HAVE taken partial distributions from one or more of my IRAs in prior years. Some of those IRAs were funded partially with deductible contributions and partially with non-deductible contributions.  So, is my new (adjusted) IRA basis the previous basis minus the portion of prior DISTRIBUTIONS that weren't taxable on last year's form 1040?