Free Calculator Updated May 2026 Educational Only

Stock Profit After Tax Calculator

Estimate how much of your stock profit you keep after simplified US federal and state capital gains taxes. Short versus long term comparison included. For other countries use the Capital Gains Tax calculator instead.

Quick Answer

How much will I keep after tax when I sell a stock?

Net profit after tax starts with the gross gain, then subtracts estimated federal and state tax. A $10,000 long term gain taxed at 15% federally and 5% by the state leaves $8,000 under that simple example. The holding period matters because moving past one year can change a gain from ordinary income rates to long term capital gains rates. The free StockEducation Stock Profit After Tax Calculator estimates the gain, federal tax, state tax, total tax, net profit and effective rate. It cannot cover every deduction, extra tax, carried loss or choice of tax lot.

Reviewed by Charles Lo — Academic Reviewer Last reviewed
💵Federal + State ⏱️Short vs Long Term 📊Net Keep Breakdown Instant Result
Dr. Charles Lo
Dr. Charles Lo, CPA, PhD Part-Time Educator at the University of Sydney · Formerly at Charles Sturt University · Now at Wentworth Institute 🔗 LinkedIn
Last reviewed 19 May 2026 Reviewed annually
Formula shown Net = Gain – Fed Tax – State Tax
Free, educational Not financial advice
↓ STOCK PROFIT AFTER-TAX CALCULATOR ↓
↓ Stock Profit After-Tax Calculator ↓

Your trade details

Enter your buy price, sale price, holding period, income and state tax rate. The result updates from simplified 2024 US tax bracket logic.

Net Profit After Tax
$—
Effective tax rate: —
Total Tax Owed
$—
Federal: — · State: —
Gross Capital Gain
$—
Return before tax: —

Profit Breakdown

Sale Price$—
Purchase Price$—
Gross Capital Gain$—
Federal Capital Gains Tax$—
State Income Tax$—
Net Profit / Take Home$—

Tax Information

Enter your trade details to see a simplified after-tax estimate.

Short-Term vs Long-Term Comparison

Short-Term
$—
Tax: —
Long-Term
$—
Tax: —

Important calculator disclosure

General education only — check the assumptions before using the result.

Purpose: This calculator is a general educational tool that performs a numerical calculation from the values you enter. It does not recommend, advertise or promote a specific financial product.

Assumptions: The calculation uses the input values and assumptions displayed in the calculator. Default values are illustrative starting points, not forecasts. Change each non-statutory assumption so it matches the scenario you want to test.

Limitations: Actual market returns, prices, dividends, interest rates, fees, tax, inflation and timing may differ from the assumptions. The calculator may omit factors relevant to you. Small input changes can materially change the result, so the output is an illustration rather than a prediction.

This financial calculator is not intended to be relied on for the purposes of making a decision in relation to a financial product. You should consider obtaining advice from a financial services licensee before making any financial decisions.

You can print this page or save it electronically using your browser controls. See ASIC Instrument 2026/41 for the conditions applying to generic financial calculators.

Can I use this for my tax return?

No. This is not tax advice.

Tax rules depend on your country, your state, your income, your holding period and your personal circumstances. They also change.

This tool applies simplified general rules and knows none of that about you. The number it produces may be wrong for your situation.

Do not file, report or plan around this figure. Confirm it with a licensed tax professional or directly with the IRS before you act.

Educational content only. This calculator provides a simplified estimate only. It does not provide tax, legal, financial or investment advice. Confirm real outcomes with a qualified tax professional.

A $5,000 long term gain at 15% federal and 5% state taxes leaves $4,000 net. The stock profit after tax calculator separates federal capital gains tax from state income tax and compares short term (ordinary rates) to long term (preferential rates) outcomes. It is the standard way to see how much you actually keep before clicking sell.

📐 Learn the math See the formula and assumptions 📊 See worked examples Verified scenarios with real numbers 🧾 Capital Gains Tax Multi country CGT detail

How to use the stock profit after tax calculator

From buy and sell prices to take-home profit after federal and state tax.

1

Enter buy and sell prices

Purchase price, sale price and holding period define the gross capital gain and whether it qualifies for long term treatment.

2

Set filing status and income

Filing status and annual taxable income determine your federal long term rate (0%, 15% or 20%) and your ordinary rate for short term.

3

Read the net profit and long-term vs short-term comparison

The result panel shows Net Profit After Tax, Total Tax and Gross Capital Gain cards, a Profit Breakdown table (sale price, purchase price, gross gain, federal CGT, state tax, net profit), and a Short-Term vs Long-Term comparison. The Long-Term column is usually materially higher — that gap is the dollar value of holding past 12 months.

Walkthrough chapters

A four-stage written walkthrough — the chapters a video would cover, available now in text.

How to use the Stock Profit After Tax Calculator

Four chapters covering inputs, outputs and the common mistakes to avoid.

0:00 Buy, sell and holding period 1:30 Filing status and income band 2:30 State tax layer 3:15 Short vs long term comparison

4 min watch. Auto captions available. Walkthrough chapters listed above.

Why use this stock profit after tax calculator

Specific outcomes, not generic claims.

💵

See the real take home

A $5,000 profit can become $3,250 after 15% federal, 5% state and a short term ordinary rate. See the number that hits your account.

⏱️

Quantify the holding period benefit

The calculator shows side by side how much you save by holding past 12 months for the preferential long term rate.

🗺️

Compare states

Moving from a 9% state to a 0% state changes after tax outcomes materially on large gains. Test the difference.

The math behind the projection

Most calculators hide the formula. We show it because understanding the math is the point.

📐 Formula

Net profit equals gross gain minus federal capital gains tax minus state income tax applied to that gain.

Net = (Sale – Purchase) × (1 – Federal Rate – State Rate)
Sale sale proceeds · Purchase original purchase price · Federal Rate long term rate (0/15/20%) or ordinary income rate for short term · State Rate state capital gains rate (0% in some states, up to about 13% in others)
Federal and state taxes both apply to the full capital gain. The calculator subtracts both to give the net amount you keep. Long term gains use the preferential federal rate; short term gains use ordinary income tax rates which are typically much higher.

What this calculator assumes vs reality

The projection is a mathematical model, not a forecast. Six assumptions baked into the math, plus what real outcomes look like.

⚠️ Six assumptions to know about

Each card pairs an assumption the calculator makes with what real world investing actually looks like.

Single transaction

Reality: Real tax depends on your full year of gains, losses and other income. This is a simplified per trade estimate.

Static brackets

Reality: Tax brackets adjust for inflation each year. The preset uses recent figures.

No NIIT

Reality: High income filers (above $200k single, $250k joint) owe an additional 3.8% NIIT. Not modelled in the preset.

Simple state rate

Reality: Some states have graduated brackets or special treatment of capital gains. Use the marginal rate that applies to you.

No loss netting

Reality: Realised losses elsewhere offset gains. The calculator handles one transaction.

No AMT

Reality: Alternative Minimum Tax can change effective rates for some filers. Not modelled.

Net effect on long run outcomes: A simple per trade estimate is useful for go or no go decisions on a sale. For your actual year end tax bill, use TurboTax, a CPA, or run a full year projection that nets all gains and losses against your other income.

How small input changes shift the result

Same base scenario, one variable changed at a time. The projection is highly sensitive to small changes.

Scenario Holding Federal Final value vs base
Long term, 15% bracket12+ months15%$4,000 netBase
Long term, 0% bracket12+ months0%$4,750 net+19%
Long term, 20% bracket12+ months20%$3,750 net-6%
Short term, 22% ordinary<12 months22%$3,650 net-9%
Short term, 32% ordinary<12 months32%$3,150 net-21%
Short term, 37% top bracket<12 months37%$2,900 net-28%
The pattern: Long term treatment can swing your net keep by 20 to 30% versus short term. The 0% long term bracket (taxable income below about $47k single, $94k joint) is genuinely zero federal tax. Selling at month 13 versus month 11 is one of the highest leverage decisions in personal investing.

State capital gains tax rates compared

The calculator assumes a smooth return every year. Here is how that compares to verified historical data.

Source Average annual return Outcome
Zero state tax (FL, TX, WA, NV, WY, SD, TN, NH, AK)0%$5,000 LT gain: $750 fed only, net $4,250
Low state (PA 3.07%, IN 3.15%, ND 2.90%)~3%$5,000 LT gain: $750 fed + $150 state, net $4,100
Middle state (NC 4.75%, GA 5.39%, NY 6.85%)~5 to 7%$5,000 LT gain: $750 fed + $300 state, net $3,950
High state (NJ 10.75%, OR 9.9%, MN 9.85%)~10%$5,000 LT gain: $750 fed + $500 state, net $3,750
California top bracket13.3%$5,000 LT gain: $750 fed + $665 state, net $3,585
The key insight: State tax can swing your net take by 5 to 10 percentage points. The same $5,000 long term gain produces $4,250 net in Florida and $3,585 net in California, a $665 difference on a single trade. Multiply across a year of trading and the state location effect can dominate your effective tax bill. Many high earner active traders relocate specifically to capture this saving.

Stock profit after tax, everything you need to know

Written by Dr. Charles Lo, Associate Professor, CPA. Reviewed annually.

Federal capital gains tax in the US splits into two regimes. Long term gains (assets held over 12 months) get preferential rates of 0%, 15% or 20% depending on your income. Short term gains (12 months or less) are taxed at your ordinary income rate, which can be as high as 37%.

State tax stacks on top. Most states tax capital gains the same as ordinary income at their state marginal rate. Nine states (including Florida, Texas, Washington and Nevada) have no state income tax. California taxes capital gains as ordinary income, reaching 13.3% at the top bracket.

The arithmetic is straightforward but the savings from long term treatment can be substantial. A $10,000 short term gain at the 32% bracket leaves $6,800 net. The same gain held to long term at 15% leaves $8,500 net. The 13 month sell versus 11 month sell question is one of the most consequential timing decisions in personal investing.

How to set your assumed return rate

Use your marginal tax bracket, not your effective rate. The capital gain stacks on top of your other income and is taxed at the marginal rate. For short term gains, this is the same bracket as your salary income.

If you are near a bracket threshold, a large realised gain can push you up. Use the calculator at both rates to see the worst case.

Common mistakes

  • Using effective rate instead of marginal. Capital gain is taxed at your top marginal rate, not the blended effective rate.
  • Forgetting state tax. A 5% state rate on a $50,000 gain is $2,500. Real money.
  • Missing the 12 month threshold. Even one day short of 12 months disqualifies long term treatment.
  • Ignoring NIIT. High income filers owe an extra 3.8% on investment gains.
  • Not netting losses. Realised losses can wipe out the gain before tax applies.
  • Assuming state rate equals income rate. Some states cap capital gains differently or have surcharges.

How to interpret your result

Compare the effective rate across short and long term. If the gap is more than 10 percentage points, holding past 12 months is almost always worth the wait unless there is a strong reason to sell now.

If your net keep is far below the gross gain, double check whether you can use realised losses elsewhere in the portfolio to offset.

Worked examples

Real numbers calculated from the same formula as the live tool. Every figure below is verified, not approximated.

Classic long term sale

Buy $10,000, sell $15,000, 18 months, single, $75k income, 5% state

Standard buy and hold investor with a middle income.

Result: Gain $5,000. Federal 15% = $750. State 5% = $250. Net $4,000. Effective rate 20%.

Short term comparison

Same buy and sell, held 11 months instead of 18

Same trade but sold one month before qualifying for long term treatment.

Result: Gain $5,000. Federal 22% ordinary = $1,100. State 5% = $250. Net $3,650. Effective rate 27%. Waiting one more month would save $350.

Zero federal bracket

Gain $5,000, taxable income $40,000 single, 0% state

Low income earner harvests a long term gain in a no income tax state.

Result: Gain $5,000. Federal 0% = $0. State 0% = $0. Net $5,000. Effective rate 0%. A common harvesting strategy in retirement.

Top bracket short term

Gain $5,000, held 6 months, 37% federal, 9.3% state (CA top)

High earner active trader in a high tax state.

Result: Gain $5,000. Federal 37% = $1,850. State 9.3% = $465. NIIT 3.8% = $190. Net $2,495. Effective rate 50%. Active trading is genuinely brutal for high earners in CA.

Large gain, mixed brackets

Gain $50,000 long term, $200k base income, 15% fed + 5% state

Successful long term position sold in a year of high other income.

Result: Federal 15% = $7,500. State 5% = $2,500. Net $40,000. Effective rate 20%. Same gain held short would cost $11,500 federal at 23%.

Frequently asked questions

The questions users most often ask about calculator output.

Is the Stock Profit After Tax Calculator free?

Yes. Free to use, no signup, no account. Your inputs are not stored or shared.

Does this work for non US investors?

The calculator is built for simplified US federal and state rules. For Australia, UK or other jurisdictions, use the Capital Gains Tax calculator with country presets.

What is the 12 month threshold?

Assets held longer than 12 months qualify for long term capital gains treatment with preferential federal rates (0/15/20%). Less than 12 months is short term and taxed at ordinary income rates up to 37%.

Does this include NIIT?

The basic preset does not. Add 3.8% to your federal rate field if your income is above $200k single or $250k joint.

How is state tax different from federal?

State capital gains tax is typically the same as your state’s marginal income tax rate. Some states (FL, TX, WA, NV and others) have zero. California has up to 13.3%.

Can I deduct losses?

Realised losses can offset gains before tax. The calculator handles a single transaction. For full year netting, use TurboTax or a CPA.

What about retirement accounts?

Gains inside 401k, IRA, Roth IRA and similar are not taxed at sale. Only taxable brokerage accounts trigger CGT on the kind this calculator models.

Why is short term so much higher?

Long term gains get a preferential rate (0/15/20%) by design, to encourage long term investment. Short term is taxed like wage income, which can be up to 37% federal.

Related calculators

Other tools for different parts of your financial picture.

Footnotes

  1. US long term capital gains brackets shown reflect tax year 2024 figures (current as at May 2026): 0% up to $47,025 single / $94,050 joint, 15% up to $518,900 single / $583,750 joint, 20% above. Brackets adjust annually for inflation. irs.gov
  2. US Net Investment Income Tax adds 3.8% on investment income for filers above $200,000 single or $250,000 joint MAGI. Stacks on top of long term rates for high earners. Current as at May 2026. irs.gov
  3. State capital gains rates as at May 2026 range from 0% (Florida, Texas, Washington, Nevada, Wyoming, South Dakota, Tennessee, New Hampshire, Alaska) to 13.3% (California top bracket). Tax Foundation maintains a current comparison. taxfoundation.org

Sources and methodology

The calculator applies simplified 2024 US federal long term and ordinary income brackets plus state capital gains rates. Federal rates are sourced from IRS publications; state rates from each state’s department of revenue.

  • U.S. Internal Revenue Service, Topic No. 409 Capital Gains and Losses, irs.gov.
  • U.S. Internal Revenue Service, Topic No. 559 Net Investment Income Tax, irs.gov.
  • Tax Foundation, State capital gains tax rates by state, taxfoundation.org.
  • Vanguard, Tax efficient investing strategies, vanguard.com.
  • U.S. Securities and Exchange Commission, Investor.gov primer on investment taxes.

Educational use only

This calculator is provided for general educational purposes only. It applies simplified federal and state rules and does not constitute tax advice. Your actual tax depends on your full year of income, gains, losses, deductions and credits. Consult a CPA or tax professional before relying on the result for any decision.

What this calculator does not do

  • It does not net realised losses against the gain automatically.
  • It does not include NIIT unless added manually.
  • It does not handle AMT, Pease limitations, or other surcharges.
  • It uses a flat state rate and does not model state graduated brackets.
  • It does not model retirement account treatment (401k, IRA).
  • It assumes a single transaction. Multi sale years should net at the tax return level.

Know the math. Use it with confidence.

This calculator gives you the number. Our free courses teach you the why behind the math, the assumptions to question, and how to apply it to your own portfolio.

  • Plain English explanations from a CPA and university lecturer
  • Worked case studies using real index data
  • Quizzes and downloadable worksheets
Start the free course
Free signup. No credit card required.

See your real take home

Enter your buy and sell prices, holding period, filing status, income and state to see net profit after federal and state capital gains tax.

Use the stock profit after tax calculator
AI Robot

Ask Our AI Stock
Learning Assistant

Get instant educational answers about
stocks, investing, and StockEducation.com.

Instant Answers Built With Learners

Educational support only. Not personal financial advice. AI responses may contain errors.

Powered by AI ●

The Ultimate Investing Starter Guide

Free Stock Market
Investing Guide

A beginner friendly guide that covers the essential lessons and concepts every new investor should understand.

Subscription Form

Inside You'll Learn

Stocks & How They Work
Valuation Basics
Compound Interest
Index Funds & Diversification
Warren Buffett Principles
AI Stock Research & More
20+ Pages
of Value
Instant
Download
100% Free
No Strings