To calculate the tax on a mutual fund redemption, subtract your cost basis (what you originally paid for the shares, including any reinvested dividends and capital gain distributions) from the proceeds of the sale, then apply the capital gains rate that matches how long you held each share lot. For 2026, gains on shares held longer than one year are taxed at 0%, 15%, or 20% depending on your income. Gains on shares held one year or less are taxed at your ordinary income rate, which can run from 10% to 37%. High earners may owe an additional 3.8% surtax on top of that.
The math is simple. The traps are in the details: which shares you’re actually selling, what you really paid for them, and how reinvested distributions change the picture.
Step 1: Figure Out Your Cost Basis
Your cost basis is the total you paid to acquire the shares you’re redeeming. Federal law defines basis as the cost of the property.1Office of the Law Revision Counsel. 26 USC 1012 – Basis of Property-Cost If you paid a front-end sales load when you bought in, that fee is part of your basis. If you paid a back-end load or redemption fee when selling, that fee reduces your proceeds rather than your basis.
Every reinvested dividend and capital gain distribution counts as a separate share purchase, with its own cost and its own acquisition date. Skipping those reinvestments is the single most common mistake in this calculation, and it always works against you: you end up reporting a larger gain than you actually had and paying more tax than you owe.
The IRS accepts several methods for identifying which shares you sold when you’ve bought at different times and prices:
- Average cost. Add the total cost of every share you own in the fund, divide by the total number of shares, and multiply that per-share average by the number of shares sold. This is the default most fund companies use for mutual fund shares.2Internal Revenue Service. Mutual Funds (Costs, Distributions, etc.) 1
- First-in, first-out. The oldest shares in your account are treated as the first ones sold. If those old shares were bought cheap, FIFO tends to produce the largest taxable gain.
- Specific identification. You tell your broker exactly which lots to sell before the trade settles. This gives you the most control: pick high-cost lots to shrink a gain, or low-cost lots when you want to realize a gain in a low-income year.3Internal Revenue Service. Stocks (Options, Splits, Traders) 1
Once you use the average cost method for a particular fund, you generally need to stick with it for that fund unless you switch before selling more shares. Your brokerage tracks basis and reports it to you and the IRS, but the numbers are ultimately your responsibility, and older shares or long-running reinvestments are exactly where broker records tend to be incomplete.
Step 2: Sort Each Lot by Holding Period
How long you held the shares determines the rate. Start counting the day after you acquired a lot and include the day you sold it.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses One year or less means short-term. More than one year means long-term.
The difference is large. Short-term gains are taxed at your ordinary income rate, which reaches 37%. Long-term gains top out at 20%. A single redemption from a fund you’ve owned for years can include dozens of separate lots (every purchase and every reinvested distribution), and each one gets classified on its own. That’s why the basis method matters so much: specific identification lets you steer the sale toward long-term lots and away from short-term ones.
Step 3: Do the Subtraction, Then Net Gains Against Losses
For each lot you sold, the calculation is:
Sale proceeds − Adjusted cost basis = Capital gain (or loss)
After running that for every lot, group the results. Put short-term gains and losses in one pile and long-term in the other. Net each pile separately. Losses within a pile offset gains within the same pile first. If one pile ends up net negative, that net loss can then offset the net gain in the other pile.
If You End Up With a Net Loss
If your total capital losses for the year exceed your total capital gains, you can use up to $3,000 of the excess to reduce your ordinary income ($1,500 if married filing separately).4Internal Revenue Service. Topic No. 409, Capital Gains and Losses Anything above that carries forward to future tax years indefinitely and keeps its short-term or long-term character.
The Wash Sale Rule
If you sell shares at a loss and buy the same fund (or one substantially identical to it) within 30 days before or after the sale, the IRS disallows the loss on your current return.5Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The 30 days run in both directions, creating a 61-day window. The disallowed amount is added to the basis of the replacement shares, so the loss isn’t permanently gone, just deferred. The rule reaches across all your accounts, including IRAs and your spouse’s accounts. To harvest a loss and stay invested in a similar asset class, you generally have to pick a fund tracking a different index.
Apply the Right Rate
Short-term gains stack on top of your wages, interest, and other ordinary income and are taxed at your regular bracket, from 10% to 37% for 2026.
Long-term gains get preferential rates. For 2026, single filers pay:
- 0% on gains falling within taxable income up to $49,450
- 15% on taxable income from $49,451 to $545,500
- 20% on taxable income above $545,500
For married couples filing jointly, the 0% rate reaches $98,900, the 15% rate covers $98,901 to $613,700, and the 20% rate begins above $613,700. The gain itself counts as taxable income when the IRS decides which bracket applies, so a large redemption can push part of the gain into a higher tier.
The 3.8% Net Investment Income Tax
Higher earners owe an extra 3.8% surtax on net investment income, including capital gains from fund redemptions. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds a threshold: $200,000 for single filers, $250,000 for joint filers, or $125,000 for married filing separately.6Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax These thresholds don’t adjust for inflation, so more taxpayers cross them each year. Near those income levels, a big redemption can add 3.8% on top of the standard long-term rate.
Don’t Forget Reinvested Distributions
Mutual funds pass through capital gains to shareholders each year, usually in December, when the fund’s managers sell securities inside the portfolio at a profit. You owe tax on those distributions even if you never sold a share yourself, and even if you reinvested every penny. The fund reports them on Form 1099-DIV, not 1099-B.
Two things follow from this for your redemption calculation. Each reinvested distribution created a new share lot with its own basis and holding period. And because you already paid tax on those distributions when they were made, the reinvested amounts add to your total basis, so you aren’t taxed on them twice when you sell. Overlooking reinvested distributions is the classic way to overpay tax on a mutual fund sale.
Estimated Tax Payments After a Big Sale
No one withholds tax from a mutual fund redemption the way an employer withholds from a paycheck. If the redemption will leave you owing more than $1,000 at filing time after your regular withholding and credits, the IRS expects quarterly estimated tax payments to cover the shortfall.7Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc. Missing them triggers an underpayment penalty that works like interest on the amount you should have sent in sooner.
You avoid the penalty by paying at least 90% of your current year’s tax liability through withholding and estimated payments, or by paying 100% of what you owed last year (110% if your prior-year adjusted gross income exceeded $150,000). If the redemption happened late in the year, annualizing your income can align the estimated payment obligation with the quarter you actually received the gain rather than spreading it evenly across all four.
Reporting the Sale on Your Return
Your brokerage sends Form 1099-B after year-end listing every redemption, with the proceeds and, for shares purchased after 2011, the cost basis. The IRS gets a copy, so what you file has to reconcile with what the broker reported. Transfer each transaction to Form 8949, which separates short-term and long-term sales.8Internal Revenue Service. Instructions for Form 8949 (2025) If the basis on your 1099-B is wrong (common with older shares and long histories of reinvestment), Form 8949 is where you enter the correction and note the adjustment.
The totals from Form 8949 flow to Schedule D of Form 1040, which is where the IRS sees your overall capital gain or loss for the year.9Internal Revenue Service. Instructions for Schedule D (Form 1040) – Capital Gains and Losses If you owe the 3.8% surtax, file Form 8960 as well. Everything is due by the regular April deadline. When a 1099-B looks wrong, contact the broker before filing. Overriding the reported numbers without explanation is one of the most reliable ways to draw IRS correspondence.
Redemptions Inside IRAs and 401(k)s Work Differently
Everything above assumes a taxable brokerage account. Selling a fund inside a traditional IRA, 401(k), or similar tax-deferred account is not a taxable event. You can switch from one fund to another with no capital gains tax at all. Tax comes due only when you withdraw from the account, and the entire withdrawal is taxed as ordinary income regardless of whether the underlying gains were short-term or long-term.
Roth IRAs and Roth 401(k)s go further. Qualified withdrawals (generally after age 59½ and at least five years after your first contribution) are entirely tax-free, so the capital gains calculation in this article doesn’t apply to Roth-held funds as long as you meet the withdrawal rules.
State Taxes Come on Top
Federal is only part of the bill. Most states also tax capital gains. A few impose no income tax at all; others tax gains above 10%. Some states treat long-term and short-term the same; others give a partial exclusion for long-term holdings. The calculation mirrors the federal one (proceeds minus basis), but the rate depends entirely on where you live. For large gains, the combined federal-plus-state rate can approach 40% or more for high earners, and it’s worth running that number before you pull the trigger on a sale.