Roth IRA Withdrawal Calculator: Tax, 10% Penalty, 5-Year Rule

What a Roth IRA withdrawal costs: which dollars come out first, whether it is a qualified distribution, the tax on earnings and the 10% tax on recent conversions. Worked from IRS Form 8606, Form 5329 and Pub. 590-B.

Your Roth IRA history, year by year

Add a row for every year money went in or came out. All your Roth IRAs count as one. The last year (2026) is the withdrawal being checked.

Exceptions to the 10% tax (dollars you spent or qualify for)

Withdrawing $50,000 in 2026

$2,300federal tax on it

Not a qualified distribution. $50,000 of it is tax-free; $0 is taxed as income, and the 10% tax is $2,300. You keep $47,700 before state tax.

  • The 5-tax-year period that began with 2016 ended December 31, 2020, so it is over in 2026.
  • You are younger than 59½ on this date.

Where each dollar comes from (the IRS order)

The part of the withdrawal taken from each source in the IRS ordering rules, and how each part is taxed
SourceAmountWhat it costs
Regular contributions$27,000Tax-free, no 10% tax
2022 conversion, part taxed when converted$23,000Not taxed again, but 10% tax: inside its 5 years (through 2026)

The cost

Federal income tax on the earnings
$0
Amount the 10% tax would apply to
$23,000
…after exceptions
$23,000
10% additional tax
$2,300
Total federal cost
$2,300

$23,000 of the 10% tax base is not earnings: it is conversion money you already paid income tax on, taken out inside that conversion's own 5 years (the “recapture amount” on Form 5329).

When each conversion is free of the 10% tax

For each conversion, the first year a withdrawal no longer triggers the 10% tax on its taxed part
Converted inAmountFree from
2022$40,0002027

Each conversion has its own 5-year clock that starts January 1 of the year you converted, so a withdrawal in that year + 5 or later does not trigger the 10% tax on it. This is not the same clock as the one that makes earnings tax-free (that one starts with your first Roth contribution).

Not modelled: Roth 401(k)/403(b) accounts, Roth SIMPLE IRAs (25% tax in the first two years), conversions before 2001 (the 4-year spread), recharacterizations and returned (excess) contributions, rolling a designated Roth account into an IRA, withdrawals in several months of one year with different ages, state tax, Medicare and other effects of the extra income, and the corrections Form 8606 allows for repaid distributions. Several of the exceptions have extra conditions the IRS checks (for example that the first home is a first home, and what counts as a qualified education expense).

Estimate only, from the IRS Form 8606 and Form 5329 instructions and Publication 590-B. Not tax advice or financial advice: the amounts on your Form 8606 and Form 5329 come from your own records, and a tax professional can check them.

Frequently asked questions

Q.In what order does money come out of a Roth IRA?

The IRS counts a withdrawal as coming out in a fixed order, whichever account you actually sold from: first your regular contributions, then your conversions and rollovers, oldest first, and last the earnings (26 CFR 1.408A-6, Q&A 8). Inside one conversion, the part you paid income tax on when you converted comes before the part that was never taxed. All your Roth IRAs are treated as one, everything withdrawn in a year is added together, and the order is settled at the end of the year, so a contribution made later the same year is already in the pot.

Publication 590-B's own example: Amelia converted $80,000 in 2021 ($20,000 of it never taxed), put $5,000 in a Roth IRA in 2025 and withdrew $7,000 at 60. The first $5,000 is her contribution; the next $2,000 is part of the conversion she paid tax on in 2021, so it is not taxed again. The calculator reproduces that, and the Form 5329 and regulation examples, in its tests.

Q.Can I take out my contributions at any age?

Yes. Because contributions come out first, a withdrawal up to the total you put in is not income and has no 10% tax, at any age and in any year. Someone who contributed $12,000, $7,000 and $8,000 can take out $27,000 at 30 with a cost of $0. Take $35,000 instead and the extra $8,000 is earnings: it is taxed as income and, before 59½, the 10% additional tax adds $800 (unless an exception applies). What counts is what you put in, not the balance today, so keep a record of each year's contribution and conversion; Form 8606 is where the IRS has you work out the taxable part.

Q.Is there one 5-year rule or two?

Two clocks, and they are not the same. (1) For a distribution to be qualified (no tax on earnings), it must come after a 5-tax-year period that begins on January 1 of the first year any Roth IRA of yours received a contribution, a conversion included, and be made on or after 59½, because of disability, to a beneficiary after death, or up to $10,000 for a first home (26 U.S.C. 408A(d)(2); 26 CFR 1.408A-6, Q&A 1 and 2). You have one such clock for all your Roth IRAs. A contribution for 2021 made as late as April 15, 2022 starts it on January 1, 2021, so the period ends on December 31, 2025 and 2026 is the first year that qualifies.

(2) Each conversion has its own 5-year clock, starting on January 1 of the year you converted. It decides only whether the 10% additional tax applies to the part of that conversion you paid income tax on (26 U.S.C. 408A(d)(3)(F); Q&A 5). Publication 590-B's example: a conversion on February 25, 2025 and a regular contribution for 2024 on the same day start two different clocks, on January 1, 2025 and January 1, 2024. A 2025 conversion therefore stops being exposed to the 10% tax in 2030. From 59½ the 10% tax does not apply at all.

Q.I already paid tax on the conversion. Why is there a 10% tax on taking it out?

Because the law wants conversions to stay put for 5 years before you are under 59½. If you take out the taxed part of a conversion inside its 5 years, you do not pay income tax a second time, but the 10% additional tax applies to it (unless an exception does). The Form 5329 instructions give the example this calculator is tested against: $20,000 converted in 2021 and $10,000 in 2022, $2,000 of contributions in each year, and a $33,000 withdrawal in 2025 at 53. The first $4,000 is contributions; then the $15,000 taxed part and $5,000 never-taxed part of the 2021 conversion; then the $7,000 taxed part of the 2022 conversion; and the last $2,000 comes from the 2022 never-taxed part. The amount on Form 5329 line 1 is $22,000, the 10% tax is $2,200, and the income tax is $0. The never-taxed part of a conversion comes out last, so it is the part that escapes.

Q.Is a first-home withdrawal always tax-free?

No. Up to $10,000 over your lifetime is a qualified distribution if the 5-year clock in the first answer is over, and then it is not taxed (Form 8606, line 20: the amount, at most $10,000 less earlier first-home distributions, is taken off before the order is applied). If the clock is not over, the $10,000 only escapes the 10% tax (Form 5329 exception 09); earnings that come out are still taxed. The calculator takes the qualified part off first when the 5 years are over and uses the exception otherwise. It does not check that the home is a first home or the costs qualify; the IRS defines those in Publication 590-B.

Q.Why does this differ from Publication 590-B's Ishmael example?

Ishmael opened a Roth IRA in 2000, put in $50,000 by 2024 and $5,500 in 2025, converted $10,000 in 2005, rolled $20,000 over from an employer plan in 2016, and in August 2025, at about 57, took $85,500 for a first home. The allocation chart in the publication gives the same split this calculator does: $10,000 first-home, $55,500 of contributions, $10,000 of the 2005 conversion and $10,000 of the 2016 rollover. The publication then says to enter $20,000 on Form 5329 line 1 and $10,000 as the first-home exception. We could not reconcile that with the rest of the IRS text: the same publication, the Form 5329 instructions and 26 U.S.C. 408A(d)(3)(F) apply the 10% tax to a conversion only for distributions within that conversion's own 5 years, and a 2025 distribution is within them only for conversions made in 2021 to 2025. The 2005 and 2016 conversions are outside, so this calculator finds $0 subject to the 10% tax. If you are in a case like this, check your Form 5329 with a tax professional.

Q.What does this not cover, and does it use my balance?

It does not need your balance: anything you take out beyond what you put in (and the conversions) is by definition earnings, so the balance is used only to cap the $1,000 emergency exception (the lesser of $1,000 and the balance above $1,000, Notice 2024-55) and to warn if you ask for more than the account holds. It does not model Roth 401(k) or 403(b) accounts, Roth SIMPLE IRAs, conversions before 2001, recharacterizations, returned contributions, state tax, or the extra Medicare surcharge a large taxable amount can cause (see the Medicare IRMAA calculator). For a traditional IRA or 401(k), use the early withdrawal calculator.

Sources