Written by Jere Salmisto·Reviewed by CalcFi Editorial·Last verified: 2026-05-13
Money Score
--

Analyze 3 calcs to unlock

0 of 3 analyzed

View your saved analyses

Recently used

Your recents will appear here

Related calculators

529 Plan Calculator 2026
Browse all categories
Mortgage & Real EstateDebt & LoansInvestments & CryptoRetirement & SavingsTax & BusinessCareerReal EstateCost GuidesHome ImprovementLegal & BusinessAuto & VehicleEducationPetsImmigrationMilitary
HomeInvestingStock Profit Calculator

Stock Profit Calculator

Calculate your stock trading profit or loss. Factor in commissions, capital gains taxes, and see your ROI and annualized return.

Auto-updated May 27, 2026 · Verified daily against IRS, Fed & Treasury sources

Instant resultsNo signupVerified formula
Free · No signup · Verified
Stock Profit Calculator

Enter your numbers below

Assumptions· 2026

  • ·Profit = (sale price − cost basis) × shares; cost basis = purchase price + commissions
  • ·2026 LTCG rates: 0% (taxable income ≤ $47,025 single), 15% (up to $518,900), 20% above
  • ·Short-term gain taxed at ordinary marginal rate if held < 365 days
  • ·Effective after-tax profit and effective tax rate shown for each scenario
When this is wrong
  • ·NIIT 3.8% surtax on net investment income above $200k single / $250k MFJ
  • ·Wash sale rule: loss disallowed if substantially identical security purchased within 30 days
  • ·State capital gains tax — California and New York tax gains as ordinary income
  • ·Specific identification vs. FIFO vs. average cost basis method selection affects taxable gain
Assumptions· 2026▾
  • ·Profit = (sale price − cost basis) × shares; cost basis = purchase price + commissions
  • ·2026 LTCG rates: 0% (taxable income ≤ $47,025 single), 15% (up to $518,900), 20% above
  • ·Short-term gain taxed at ordinary marginal rate if held < 365 days
  • ·Effective after-tax profit and effective tax rate shown for each scenario
When this is wrong
  • ·NIIT 3.8% surtax on net investment income above $200k single / $250k MFJ
  • ·Wash sale rule: loss disallowed if substantially identical security purchased within 30 days
  • ·State capital gains tax — California and New York tax gains as ordinary income
  • ·Specific identification vs. FIFO vs. average cost basis method selection affects taxable gain

Related calculators

529 Plan Calculator 2026
Your Results

Based on your inputs

Demo numbers · replace inputs to see yours
Net Profit
$2,125

42.5% ROI

Gross Profit$2,500
Commissions$0
Profit After Commissions$2,500
Capital Gains Tax$375
Total Invested$5,000
Annualized Return38.15%
Break-Even Price$50

Money Score: Analyze 3 calcs across rent, debt, and savings to unlock.

More actions
Embed
Saved
Money Score
--

Analyze 3 calcs to unlock

0 of 3 analyzed

View your saved analyses

Your next step

📊 Analyze 3+ calcs to unlock your Financial Picture dashboard (cross-analysis of all your numbers).

Continue with Side Hustle Calculator: Your Real Take-Home Profit

Decision guides

Compound Interest Explained
The math that makes small amounts huge over time.
Dollar-Cost Averaging vs. Lump Sum
Data on which strategy wins in most scenarios.
Roth IRA vs. Traditional IRA
Tax-now vs. tax-later — which wins for you?

Deep-dive articles

Understanding Stock Profit Calculations

Calculating stock profits seems straightforward — buy low, sell high, pocket the difference. But the reality involves several layers of costs and taxes that can significantly affect your actual take-home profit. Understanding how to accurately calculate your stock trading profits is essential for making informed investment decisions, planning for taxes, and evaluating your investment performance over time.

Your gross profit on a stock trade is simply the difference between your total sale proceeds and your total purchase cost. If you bought 100 shares at $50 each ($5,000 total) and sold them at $75 each ($7,500 total), your gross profit is $2,500. However, this number doesn't tell the full story. After accounting for trading commissions, fees, and capital gains taxes, your net profit could be substantially different.

In the era of commission-free trading through platforms like Robinhood, Fidelity, and Charles Schwab, many investors assume there are no transaction costs. While explicit commissions have largely disappeared for standard stock trades, other costs remain. Payment for order flow, bid-ask spreads, and regulatory fees still exist and can affect your effective execution price. For options trades, futures, and some international stocks, commissions remain common. And for investors using full-service brokers or making large institutional trades, commission structures can be complex and significant.

Gross Profit vs Net Profit: What Really Matters

Gross profit is the starting point — the raw gain or loss from the price difference between your buy and sell transactions. To calculate gross profit, multiply the number of shares by the sell price and subtract the number of shares multiplied by the buy price. This gives you the pure market gain or loss before any costs are deducted.

Net profit accounts for all costs associated with the trade. The primary deductions include buy-side commission (the fee to execute your purchase order), sell-side commission (the fee to execute your sale order), and capital gains tax (the tax owed on your profit). Some investors also need to account for SEC fees, exchange fees, or advisory fees depending on their broker and account type.

The formula for net profit is: Net Profit = (Shares × Sell Price) - (Shares × Buy Price) - Buy Commission - Sell Commission - Capital Gains Tax. This final number is what actually ends up in your pocket, and it's the only number that matters for evaluating whether a trade was truly profitable.

Capital Gains Tax: The Biggest Variable

For most investors, capital gains tax is the largest cost after the initial investment. The United States taxes capital gains at different rates depending on how long you held the investment before selling. This distinction between short-term and long-term capital gains has a dramatic impact on your after-tax returns.

Short-term capital gains apply to investments held for one year or less. These gains are taxed as ordinary income, meaning they're added to your regular income and taxed at your marginal tax rate. For high-income earners, this can mean a tax rate of 32%, 35%, or even 37% on short-term gains. For a $10,000 profit, that translates to $3,200-$3,700 in taxes.

Long-term capital gains apply to investments held for more than one year. These enjoy preferential tax rates of 0%, 15%, or 20%, depending on your taxable income. Most investors fall into the 15% long-term capital gains bracket. On the same $10,000 profit, you'd owe $1,500 instead of potentially $3,700 — a difference of $2,200 just for holding the stock an extra few months.

This tax differential creates a powerful incentive for longer holding periods. If you're considering selling a stock that you've held for 10 or 11 months, it may be worth waiting until you cross the one-year threshold to qualify for long-term rates. Of course, this calculation depends on your outlook for the stock — if you expect it to decline significantly, the tax savings may not justify the potential market loss.

Additionally, high-income taxpayers (above $200,000 single or $250,000 married filing jointly) are subject to the Net Investment Income Tax (NIIT) of 3.8% on top of regular capital gains rates. This brings the maximum effective long-term capital gains rate to 23.8% for the highest earners.

ROI: Measuring Investment Performance

Return on Investment (ROI) expresses your profit as a percentage of your initial investment, providing a standardized way to evaluate performance across different trades and investments. The basic ROI formula is: ROI = (Net Profit / Total Investment Cost) × 100.

For example, if you invested $5,000 (including commissions) and your net profit after all costs and taxes is $1,200, your ROI is 24%. This percentage makes it easy to compare investments of different sizes — a $1,200 profit on a $5,000 investment (24% ROI) is better performance than a $2,000 profit on a $20,000 investment (10% ROI), even though the dollar amount is larger in the second case.

However, basic ROI doesn't account for time. A 24% return over 6 months is very different from a 24% return over 5 years. This is where annualized return becomes important. Annualized return (also called CAGR — Compound Annual Growth Rate) normalizes returns to a yearly basis, allowing you to compare investments held for different time periods.

The annualized return formula is: Annualized Return = ((1 + ROI) ^ (365 / days held)) - 1. Using our example, a 24% ROI over 180 days annualizes to approximately 53% — indicating exceptional performance when measured on a yearly basis. The same 24% ROI over 1,825 days (5 years) annualizes to about 4.4% — a decent but unremarkable return.

Understanding Break-Even Points

Before entering any trade, it's valuable to know your break-even point — the sell price at which you neither make nor lose money after accounting for all costs. The break-even price includes your purchase price per share plus the per-share impact of commissions and estimated taxes.

For commission-free trades, the break-even is simply your buy price (assuming you don't account for taxes until you actually sell). For trades with commissions, add the total round-trip commission (buy + sell) divided by the number of shares to your buy price. For example, if you buy 100 shares at $50 with a $10 buy commission and expect a $10 sell commission, your break-even price is $50 + ($20 / 100) = $50.20 per share.

Understanding break-even helps you set realistic price targets and stop-loss levels. If your break-even after commissions is $50.20 and you're targeting a 10% gain, your target sell price is $55.22. If you want at least a 10% gain after capital gains taxes too, you may want to factor in the tax rate when setting your target — for a 15% tax rate, you'd need a pre-tax gain of approximately 11.8% to net 10% after taxes.

Dollar-Cost Averaging and Multiple Lots

Many investors don't buy all their shares at once but instead build positions over time through dollar-cost averaging (DCA) or additional purchases at different price points. This creates multiple tax lots — groups of shares purchased at different prices and times — which complicates profit calculations.

When you sell shares from a position built through multiple purchases, you may want to determine which lots you're selling. The most common methods are FIFO (First In, First Out), which assumes you're selling the oldest shares first; LIFO (Last In, First Out), which sells the newest shares first; and Specific Identification, which lets you choose exactly which lots to sell.

The choice of method can have significant tax implications. If your earliest purchases were at the lowest prices, FIFO results in higher gains (and higher taxes) per share. If you made recent purchases at higher prices, LIFO or Specific Identification might let you sell those higher-cost shares, resulting in lower gains and lower taxes. Most tax advisors recommend using Specific Identification for maximum tax efficiency, selling your highest-cost lots first to minimize capital gains.

Losses and Tax-Loss Harvesting

Not every trade is profitable, and understanding how losses work is just as important as understanding gains. Capital losses can offset capital gains dollar for dollar, reducing your tax liability. If you have $5,000 in capital gains and $3,000 in capital losses, you only pay tax on $2,000 of net gains.

If your capital losses exceed your capital gains in a given year, you can deduct up to $3,000 of net capital losses against ordinary income ($1,500 if married filing separately). Any remaining losses carry forward to future tax years indefinitely. This means even losing trades have tax value — they can reduce taxes on future winning trades or on your regular income.

Tax-loss harvesting is the practice of deliberately selling losing positions to realize losses for tax purposes. This is particularly effective near year-end when you can assess your total gains and strategically take losses to offset them. However, be aware of the wash sale rule — if you sell a stock at a loss and repurchase the same or substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes.

Common Mistakes in Calculating Stock Profits

One of the most common mistakes is ignoring the impact of taxes when evaluating trade performance. A trade that looks profitable on a pre-tax basis may be much less impressive after taxes, especially for short-term trades taxed at ordinary income rates. Always calculate after-tax returns when comparing investment strategies.

Another mistake is not accounting for all costs. Beyond commissions, costs can include margin interest (if you bought on margin), advisory fees, platform fees, data subscription fees, and currency conversion costs for international stocks. These seemingly small costs compound over time and can significantly erode returns, especially for active traders making many transactions.

Overemphasizing dollar returns while ignoring percentage returns is another pitfall. A $5,000 profit might seem great, but if it required a $200,000 investment held for three years, the annualized return is only about 0.8% — far below what you could earn in a simple savings account. Always evaluate returns in percentage terms relative to the capital deployed and time invested.

Finally, many investors forget to account for inflation when evaluating long-term returns. A 7% nominal return with 3% inflation is only a 4% real return. For long-term investment evaluation, real (inflation-adjusted) returns provide a more accurate picture of actual wealth creation than nominal returns.

Practical Tips for Maximizing After-Tax Stock Profits

Hold investments for at least one year when possible to qualify for long-term capital gains rates. The tax savings from long-term rates can add 10-20 percentage points to your after-tax return on profitable trades.

Use tax-advantaged accounts (401k, IRA, Roth IRA) for your most active trading. Trades within these accounts have no immediate tax consequences, allowing you to compound returns without the drag of annual capital gains taxes. Save your taxable brokerage account for long-term, buy-and-hold investments where you control when gains are realized.

Keep detailed records of all purchases, including dates, prices, number of shares, and commissions. Good record-keeping is essential for accurate tax reporting and for identifying opportunities for tax-loss harvesting and optimal lot selection when selling.

Consider your full tax picture before making trading decisions. If you expect to be in a lower tax bracket next year (due to retirement, career change, or sabbatical), it may be worth deferring gains to the following year. Conversely, if you expect to be in a higher bracket, realizing gains now at the lower rate can be advantageous.

Common Stock Profit Calculation Mistakes

Forgetting to include all costs: Your true profit isn't simply sell price minus buy price. Factor in broker commissions (if any), SEC fees on sales, and any margin interest if you bought on margin. While most major brokers now offer commission-free trading, SEC regulatory fees still apply to sell orders — typically a few cents per $1,000 sold, but they add up for frequent traders.

Ignoring the impact of dividends: If you held a stock for two years and received $500 in dividends, your total return includes both the capital gain and the dividend income. Many investors calculate their"profit" based only on share price change and forget about reinvested dividends. Over long holding periods, dividends can account for 30-50% of total stock market returns.

Not accounting for inflation: A stock that doubled over 10 years earned roughly 7.2% annually. But if inflation averaged 3% during that period, your real (inflation-adjusted) return was only about 4.2%. On a $10,000 investment that grew to $20,000, your purchasing power increased by only about $5,000 in today's dollars — not the $10,000 the nominal gain suggests. Always consider real returns when evaluating long-term investment performance.

Stock profit = (Shares × Sell Price) - (Shares × Buy Price) - Buy Commission - Sell Commission - Capital Gains Tax. Start with gross profit (sell proceeds minus purchase cost), then subtract commissions and applicable taxes to get your net profit.

Short-term capital gains apply to investments held for one year or less and are taxed at your ordinary income tax rate (up to 37%). Long-term capital gains apply to investments held over one year and are taxed at preferential rates of 0%, 15%, or 20% depending on your income level.

ROI = (Net Profit / Total Investment Cost) × 100. For example, if you invested $10,000 total (including commissions) and your net profit after all costs is $2,000, your ROI is 20%. This percentage helps compare the efficiency of different investments.

Annualized return normalizes your investment return to a yearly rate, allowing fair comparison of investments held for different time periods. The formula is: ((1 + Total Return) ^ (365 / Days Held)) - 1. A 20% return over 6 months is approximately 44% annualized.

No — losses are tax-beneficial. Capital losses offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 per year against ordinary income, with excess losses carrying forward to future years indefinitely.

Add total round-trip commissions (buy + sell) divided by the number of shares to your purchase price. For example, 100 shares at $50 with $20 total commissions means your break-even is $50.20 per share instead of $50.00.

Yes, for total return calculations. Total return includes both price appreciation and dividends received. If you bought at $50, sold at $55, and received $2 in dividends per share, your total return is $7 per share (14%), not $5 (10%).

Use the average cost method: total amount invested divided by total shares owned. If you bought 50 shares at $40 and 50 shares at $60, your average cost basis is ($2,000 + $3,000) / 100 = $50 per share. Alternatively, use specific identification to choose which shares to sell for tax optimization.

The wash sale rule prevents claiming a tax loss if you buy the same or substantially identical security within 30 days before or after selling at a loss. The disallowed loss gets added to the cost basis of the replacement shares. This rule applies across all your accounts including IRAs and spouse accounts.

For long-term gains (held over 1 year), single filers pay 0% on gains up to $47,025, and 15% on gains above that threshold in 2024. Short-term gains are taxed as ordinary income at your marginal rate (10-37%). A $10,000 long-term gain at 15% costs $1,500 in tax versus up to $3,700 if short-term in the 37% bracket.

Gross Profit: (Sell Price - Buy Price) × Shares

Net Profit: Gross Profit - Commissions - Capital Gains Tax

ROI: Net Profit ÷ Total Investment × 100

Annualized Return: ((1 + ROI)^(365/days)) - 1

Break-Even: Buy Price + (Total Commissions ÷ Shares)

Published byJere Salmisto· Founder, CalcFiReviewed byCalcFi EditorialEditorial standardsMethodologyLast updated May 28, 2026

Primary sources & authoritative references

Every formula on this page traces to a federal agency, central bank, or peer-reviewed institution. We cite the rule-makers, not secondhand blogs.

  • IRS Topic No. 409 — Capital Gains and Losses — Internal Revenue ServiceShort-term vs. long-term capital gains rates and holding-period rules. (opens in new tab)
  • SEC Investor.gov — Stocks — U.S. Securities and Exchange CommissionSEC guide to stock ownership, cost basis, and return calculation. (opens in new tab)
  • IRS Publication 550 — Investment Income and Expenses — Internal Revenue ServiceCost basis methods (FIFO, specific identification) and wash-sale rules. (opens in new tab)

Found an error in a formula or source? Report it →

Calculations are for educational purposes only. Consult a qualified financial advisor for personalized advice.