She Paid $180,000 for an Annuity That Grew to $300,000, Then Took Out $40,000 for a New Roof. The IRS Counted Every Dollar as Gain, Because the Earnings Come Out First

Published November 19, 2026, 4:04pm ET · 5 min read

The Full Benefits Desk desk. Editor: Gerelyn Terzo.

This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.

A roofer nailing asphalt shingles onto a roof with a pneumatic nail gun
© Jens_Lambert_Photography / Getty Images

The roof was the easy decision. The tax bill came as a surprise. Consider this example case. A retired school administrator, already past age 59½[1], put $180,000 of after-tax savings into a nonqualified deferred annuity.

Over the years the contract grew to $300,000. She then took out $40,000 to replace her roof. She assumed part of that money would count as a return of her own principal. When she filed, the full $40,000 showed up as ordinary income.

The insurer and the IRS handled it right. Under the Internal Revenue Code, money leaves a deferred annuity in a set order, and gains come out first. Anyone near retirement who holds an annuity bought with after-tax dollars should understand this rule before writing a big check from the contract.

How the Earnings-First Rule Takes Your Gain Before Your Principal

Section 72 of the Internal Revenue Code covers annuity taxes. Taking money out before the annuity starting date (the point where you convert the contract into a stream of payments) means the withdrawal “shall be included in gross income to the extent allocable to income on the contract”[1] under 26 U.S.C. § 72(e)(2)(B)(i). The part attributable to your investment in the contract is excluded under § 72(e)(2)(B)(ii)[1].

The ordering comes from § 72(e)(3)(A). A withdrawal counts as income up to the excess of the contract’s cash value over your investment in the contract, measured “immediately before the amount is received”[1]. Only the amount above that excess counts as a return of your money, under § 72(e)(3)(B)[1].

IRS Publication 575 explains it in plain terms. For a nonqualified annuity, “including a contract you bought directly from the issuer,” the amount withdrawn “is allocated first to earnings (the taxable part) and then to your cost (the tax-free part)”.

Running the Numbers on the Roof Withdrawal

In this example, the gain sitting in the contract is larger than the withdrawal, so every dollar she took out is taxable.

Example Item Amount
Premium paid (investment in the contract) $180,000
Cash value before withdrawal $300,000
Gain in the contract $120,000
Roof withdrawal $40,000
Taxable portion $40,000
Gain remaining after withdrawal $80,000
Contract value after withdrawal $260,000

Her next withdrawals will also be fully taxable until the remaining $80,000 of gain has come out. Publication 575 says the taxable part of a distribution “is treated as ordinary income”, so it is taxed at her full ordinary income rate, as the lower capital gains rate does not apply. The same publication notes that nonqualified annuities are included in calculating net investment income for the Net Investment Income Tax. A large withdrawal can therefore raise income enough to trigger that tax as well. The earnings-first rule is one of several quiet IRS provisions that can cost retirees five or six figures over time, and we mapped out the rest in a free guide to the tax traps that drain retirement accounts.

Withdrawals Before 59½ Add a 10% Additional Tax

Section 72(q)(1) increases tax by 10% of the portion of such amount which is includible in gross income[1]. Distributions made on or after age 59½[1] are exempt under § 72(q)(2)(A). If the same administrator had taken the roof money before that age, this example would have triggered a tax of $4,000, on top of regular income tax.

Section 72(q)(2) also exempts payments made after the holder’s death, payments tied to disability, substantially equal periodic payments over the taxpayer’s life or life expectancy, and payments from an immediate annuity contract[1].

Surrender Charges Leave the Taxable Gain Untouched

Many owners expect an insurer’s withdrawal fee to reduce their taxable gain. The law measures cash value “determined without regard to any surrender charge”[1]. As a result, a withdrawal before those fees run out can cost you the insurer’s fee and still be fully taxable based on the contract’s total value.

Qualified Contracts and Pre-1982 Money Follow Different Rules

Earnings-first ordering applies to nonqualified money. If an annuity sits inside a qualified retirement plan, Publication 575 says “a ratable part of the amount withdrawn is tax free,” based on the ratio of cost to account balance. Contracts bought before August 14, 1982 use cost-first ordering for that older investment and its earnings.

A few other rules matter in practice:

  • Full surrender: The proceeds are “tax free to the extent of any cost that you haven’t previously recovered tax free”. Only the rest is taxed.
  • After annuitization: Lump-sum withdrawals taken (other than as an annuity) on or after the annuity starting date are generally taxable in full. Annuity payments themselves let you recover cost gradually.
  • Multiple contracts: All annuity contracts issued by the same company to the same policyholder during any calendar year[1] are treated as one contract. Splitting a purchase into several policies with one insurer remains subject to earnings-first ordering.

Questions to Answer Before You Tap a Deferred Annuity

  1. How much gain is in the contract? If the gain is larger than the amount you need, the whole withdrawal is taxable.
  2. Which bracket will it fall into? The withdrawal is added to your other income for that year. Spreading large withdrawals across tax years can reduce the effect.
  3. Where are you relative to 59½? Before that age, the 10% early-withdrawal penalty applies unless an exception fits.
  4. Is the insurer’s early-withdrawal fee still in effect? Look up your contract’s schedule and free-withdrawal allowance before you request money.
  5. What other cash could cover the cost? Savings, a taxable brokerage account (where you may owe tax only on capital gains), or home-equity borrowing each come with different trade-offs.
  6. Does annuitizing fit your goals? Converting the contract to payments spreads basis recovery over time. It also gives up access to the lump sum.

What to Check Next

The current IRS guidance on these rules is Publication 575 for tax year 2025. Check the next edition when it comes out. Required minimum distribution (RMD) rules under section 401(a)(9) are a separate regime that covers qualified accounts. The IRS has said that future final RMD regulations will apply no earlier than six months after they are published. For a nonqualified contract, the key figure to know before any withdrawal is the gap between the cash value and what you paid in.

Contact [email protected] for any questions or corrections.

Gerelyn Terzo

Gerelyn Terzo is the author of dividend investing handbook "Dividend Investing Strategies: How to Have Your Cake & Eat It Too." A veteran financial journalist, she covers agri-finance for outlets like Global AgInvesting and the broader stock market and personal finance for 24/7 Wall Street. She began at CNBC and later helped launch Fox Business in New York. Gerelyn currently resides in Woodland Park, Colorado and dabbles in nature photography as a hobby.

All articles →

Sources

  1. 26 U.S.C. § 72 — Annuities; certain proceeds of endowment and life insurance contractsOffice of the Law Revision Counsel, U.S. House of Representatives