Trade P/L Calculator

Calculate your after-tax profit including federal and state capital gains taxes.

Updated March 2026
Per transaction (applied to buy & sell)
After-Tax Profit
$0
Long-Term
Gross P/L
$0
Total Tax
$0
Return on Investment
0%
Effective Tax Rate
0%
Tax Breakdown
Capital Gain/Loss $0
Commission Fees -$0
Federal Tax (0%) -$0
State Tax (0%) -$0

Understanding Capital Gains Taxes

When you sell an investment for more than you paid, the profit is called a capital gain and is subject to tax. The tax rate depends on two factors: how long you held the asset (short-term vs. long-term) and your overall income tax bracket.

This calculator helps you understand exactly what you'll keep after taxes, so you can make informed decisions about when to sell and whether holding longer for long-term rates makes sense.

How to Use This Calculator

  • Enter your buy and sell prices per share
  • Enter the number of shares traded
  • Add any commission or trading fees
  • Select your holding period (short-term or long-term)
  • Choose your federal tax bracket and state

Short-Term vs. Long-Term Capital Gains

Tax Bracket Short-Term Rate Long-Term Rate
10-12%10-12%0%
22-35%22-35%15%
37%37%20%

Tax-Saving Strategies

  • Hold investments over 1 year for lower long-term rates
  • Harvest losses to offset gains (tax-loss harvesting)
  • Use tax-advantaged accounts (IRA, 401k) when possible
  • Consider state taxes - some states have no capital gains tax
  • Time sales to manage your tax bracket

The Net Investment Income Tax (NIIT)

High earners may also owe an additional 3.8% Net Investment Income Tax on capital gains if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This calculator does not include NIIT; consult a tax professional for high-income situations.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?

Short-term capital gains apply to assets held 1 year or less and are taxed at your ordinary income rate (up to 37%). Long-term gains apply to assets held more than 1 year and receive preferential rates of 0%, 15%, or 20% depending on your income bracket.

Can I deduct losses against gains?

Yes. Capital losses offset capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 of net losses against ordinary income per year. Excess losses carry forward to future years indefinitely.

When do I owe state capital gains tax?

Most states tax capital gains as ordinary income. Nine states (Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, Wyoming) have no state income tax. Some states offer special treatment for long-term gains. This calculator includes state tax rates for major states.

How does the wash sale rule affect my taxes?

The wash sale rule disallows loss deductions if you buy substantially identical securities within 30 days before or after selling at a loss. The disallowed loss is added to the cost basis of the new shares. This prevents harvesting losses while maintaining your position.

Should I always wait for long-term treatment?

Not necessarily. While long-term rates are lower, other factors matter: risk of price decline while waiting, opportunity cost of capital, and your specific tax situation. Sometimes taking a short-term gain is the right choice. This calculator helps you compare both scenarios.

Get the app

All calculators, portfolio tracking, and more. Free on iOS.

Download Drizzle DCA