Why basis-versus-earnings ordering matters

Roth IRA contributions can typically be withdrawn at any time without tax or penalty, since they were already made with after-tax dollars. Earnings are treated differently, especially before age 59½ or before a Roth account has been open for five years.

A withdrawal that stays within contribution basis avoids tax and penalty entirely. Once a withdrawal exceeds basis, the excess is treated as earnings and may be taxed, penalized, or both, depending on individual circumstances and any applicable exception.

How to use this example

Treat this result as a planning baseline, not a final answer. Confirm your actual contribution basis, prior withdrawals, and any qualifying exception with your account records and a qualified tax professional.

Use the full calculator if you need to test a different withdrawal amount, basis, earnings exposure, or rate assumption.