Stock Calculator: Profit, ROI & Tax (Free 2026)

Stock Calculator

Calculate profit/loss, total return (including dividends), break-even price, optional taxes, scenarios, and detailed buy-lot + split tables.

Ultra-detailed โ€ข Mobile-ready

Inputs

Total return typically includes both price change and dividends/income. [web:134][web:141]

P/L uses average cost (simple). Tax lots (FIFO/LIFO) can differ by broker/jurisdiction.

A split increases share count and reduces price proportionally; value stays the same. [web:140]

Results

Total cost basis (buys + buy fees)

โ€”

Split-adjusted shares: โ€”

Average cost per share (split-adjusted)

โ€”

Combined split factor: โ€”

Sell proceeds (after sell fee)

โ€”

Dividends (cash): โ€”

Profit / Loss

โ€”

ROI: โ€”

Performance metrics

Total return: โ€” โ€ข CAGR (annualized): โ€”

CAGR uses the common formula: (End รท Begin)^(1/years) โˆ’ 1. [web:139]

Break-even & taxes (optional)

Break-even sell price (incl. sell fee, incl. dividends): โ€”

Capital gains tax: โ€” โ€ข Dividend tax: โ€”

After-tax P/L: โ€” โ€ข After-tax ROI: โ€”

Buy lots detail

# Date Shares Buy price Fee Total cost

Stock split events

# Date Ratio Note

Sell-price scenarios (same shares sold + same dividends)

Scenario Sell price Proceeds P/L ROI

Results appear after you click โ€œCalculate.โ€


Use this free stock calculator to instantly calculate your stock profit or loss, return on investment (ROI), CAGR, break-even price, dividends, capital gains tax, and after-tax returns โ€” all in one place. No signup required.

Whether you just sold shares or are planning your next trade, this stock profit calculator gives you the complete financial picture in seconds โ€” something no competitor’s basic tool can match.


What This Calculator Covers

  • โœ… Stock profit and loss โ€” gross and net, including all fees
  • โœ… Return on investment (ROI) โ€” as a percentage of your total cost
  • โœ… CAGR โ€” annualized return for multi-year holdings
  • โœ… Break-even sell price โ€” the exact price you need to avoid a loss
  • โœ… Dividend income โ€” total return including cash dividends received
  • โœ… Capital gains tax โ€” optional short-term and long-term tax estimates
  • โœ… Stock splits โ€” automatically adjusts your cost basis and share count
  • โœ… DCA (multiple buy lots) โ€” supports dollar-cost averaging entries
  • โœ… Sell-price scenarios โ€” see your P/L if the stock moves ยฑ10%, +25%, +50%

In 2026, knowing your real after-tax return โ€” not just your gross profit โ€” is the difference between a smart exit and a costly mistake.


How to Use This Free Stock Calculator

Stock Calculator step-by-step process showing how to calculate stock profit ROI and tax
Simple 5-step workflow showing how a stock calculator determines profit, ROI, dividends, and tax.

Step-by-Step: Enter Your Trade Details

Using this stock return calculator takes under two minutes. Follow these five steps:

  1. Select your currency โ€” USD, GBP, EUR, CAD, AUD, and 18 more options
  2. Enter your buy lot(s) โ€” date, number of shares, buy price per share, and any brokerage fee
  3. Enter your sell details โ€” sell price per share, sell fee, and shares sold (leave blank to sell all)
  4. Add optional data โ€” dividends received, capital gains tax rate, dividend tax rate, holding dates for CAGR
  5. Click “Calculate” โ€” your full stock profit analysis appears instantly below

Pro tip: If you used dollar-cost averaging (DCA), click “Add buy lot” to enter each purchase separately. The stock calculator will automatically average your cost basis across all lots.


Understanding Your Results

Result LabelWhat It MeansWhy It Matters
Total Cost BasisTotal amount you invested (shares ร— price + fees)Your true starting point for all calculations
ProceedsWhat you received from the sale (shares ร— sell price โˆ’ sell fee)Your gross cash in hand
Profit / LossProceeds + dividends โˆ’ cost basisYour actual gain or loss
ROINet profit รท cost basis ร— 100Compares this trade to any other investment
Total Return %Includes price change AND dividendsThe complete measure of investment performance
CAGRAnnualized compounded returnLets you compare multi-year stock returns fairly
Break-Even PriceMin sell price to recover your full costCritical decision-making metric before you sell
After-Tax P/LProfit remaining after capital gains + dividend taxYour real take-home profit

Stock Splits & DCA (Multiple Buy Lots)

If the stock you own has split since you bought it, this matters for your cost basis calculation.

Example: You bought 10 shares of NVDA at $500. The stock splits 10-for-1. You now hold 100 shares with an average cost of $50 per share โ€” your total invested amount is still $5,000. Enter the split ratio (10-for-1 = numerator: 10, denominator: 1) and the calculator adjusts automatically.

For DCA investors, simply click “Add buy lot” for each purchase:

  • Lot 1: 20 shares at $100 on Jan 1
  • Lot 2: 20 shares at $80 on Mar 1
  • Average cost: $90/share across 40 shares

To understand how consistent investing amplifies returns over time, explore our Compound Interest Calculator and Investment Calculator for long-term projections.


How to Calculate Stock Profit, ROI, and CAGR

Most stock calculator pages stop at a basic profit formula. Here is the complete framework โ€” with real numbers โ€” that serious investors actually use.

Stock Profit and Loss Formula

The foundational stock profit calculation:

P/L = (Sell Price ร— Shares Sold) โˆ’ Sell Fee + Dividends โˆ’ (Buy Price ร— Shares) โˆ’ Buy Fee

Real Example:

  • Bought 100 shares at $50 โ†’ Total cost: $5,000 + $7 commission = $5,007
  • Sold 100 shares at $65 โ†’ Proceeds: $6,500 โˆ’ $7 commission = $6,493
  • Dividends received: $120
  • Net Profit = $6,493 + $120 โˆ’ $5,007 = $1,606
Without Fees & DividendsWith Fees & Dividends
Gross Profit$1,500$1,606
ROI30.0%32.1%

This difference illustrates why using a proper stock investment calculator โ€” not mental math โ€” is essential.


How to Calculate ROI on Stocks

ROI Formula:

ROI = (Net Profit รท Total Cost Basis) ร— 100

Using the example above:

ROI = ($1,606 รท $5,007) ร— 100 = 32.1%

What This Means For You: A 32.1% ROI sounds excellent โ€” but ROI alone doesn’t tell you how long it took. That’s where CAGR becomes essential. The SEC’s Investor.gov reminds investors that fees, holding time, and dividends all affect true investment performance.


What Is CAGR and Why It Beats Simple ROI

CAGR (Compound Annual Growth Rate) is the most accurate metric for comparing stock returns across different holding periods.

CAGR Formula:

CAGR = (End Value รท Start Value)^(1 รท Years) โˆ’ 1

Real Example:

  • Invested $5,000 โ†’ Value after 4 years: $9,000 (including dividends)
  • CAGR = ($9,000 รท $5,000)^(1/4) โˆ’ 1 = 15.8% per year
MetricValueWhat It Tells You
Simple Total Return80%Total gain over entire holding period
CAGR15.8%/yearAnnual compounding rate โ€” the right comparison
S&P 500 Avg CAGR (long-term)~10%/yearYour benchmark

Key Insight: A trade showing 80% total return over 4 years looks impressive. But at 15.8% CAGR, it just beat the market average. A 30% total return in 1 year (30% CAGR) actually outperforms it.

Zero competitors explain this distinction. This is exactly why investors misread their own performance.

Stock Calculator ROI vs CAGR comparison showing why CAGR measures investment performance more accurately
Comparison between simple ROI and CAGR to understand accurate investment performance measurement.

Break-Even Stock Price โ€” What It Is and How to Use It

Break-Even Formula:

Break-Even Price = (Total Cost Basis โˆ’ Dividends + Sell Fee) รท Shares Sold

Real Example:

  • Cost basis: $5,007 | Sell fee: $7 | Dividends: $120 | Shares: 100
  • Break-even = ($5,007 โˆ’ $120 + $7) รท 100 = $48.94/share

What This Means For You: If the stock is trading above $48.94, any sale generates a profit. Below that level, you’re taking a loss. Knowing your break-even price removes emotion from sell decisions โ€” one of the most powerful tools in disciplined investing.

For retirement-focused investors, pair this analysis with our 401(k) Calculator and Retirement Calculator to see how stock gains fit your long-term goals.


Capital Gains Tax on Stocks โ€” 2026 Complete Guide

This is the section your competitors don’t have. Understanding capital gains tax is the difference between calculating your profit and knowing your actual take-home money.

Short-Term vs. Long-Term Capital Gains Tax (2026)

The IRS defines two categories based on your holding period:

  • Short-term gain โ€” Stock held โ‰ค 1 year โ†’ Taxed as ordinary income (10%โ€“37%)
  • Long-term gain โ€” Stock held > 1 year โ†’ Taxed at preferential rates (0%, 15%, or 20%)

2026 Long-Term Capital Gains Tax Brackets (Federal):

Filing Status0% Rate15% Rate20% Rate
SingleUp to $48,350$48,351โ€“$533,400Over $533,400
Married Filing JointlyUp to $96,700$96,701โ€“$600,050Over $600,050
Head of HouseholdUp to $64,750$64,751โ€“$566,700Over $566,700

Source: IRS Topic 409 โ€” Capital Gains and Losses

Stock Calculator capital gains tax comparison showing short term vs long term tax rates
Understanding how holding period affects capital gains tax when calculating stock profits.

How to Calculate Capital Gains Tax on a Stock Sale

Real Example โ€” Long-Term Gain:

  • Net profit from stock sale: $10,000
  • Filing status: Single | Taxable income: $55,000
  • Rate: 15% (income falls in 15% bracket)
  • Capital gains tax owed: $1,500
  • After-tax profit: $8,500
ScenarioGainTax RateTax OwedAfter-Tax Profit
Short-term (income: $55K)$10,00022%$2,200$7,800
Long-term (income: $55K)$10,00015%$1,500$8,500
Long-term (income: $45K)$10,0000%$0$10,000

The difference between short-term and long-term tax treatment on a $10,000 gain can be $2,200 โ€” simply by holding shares one additional day past 12 months.

For a deeper dive, read our complete Capital Gains Tax 2026 guide covering strategies that can save you up to $12,000.


How to Reduce Capital Gains Tax on Stocks (Legal Strategies)

  • Hold for 12+ months โ€” Qualify for the significantly lower long-term rate
  • Use tax-loss harvesting โ€” Offset profitable sales with losing positions in the same tax year
  • Invest through a Roth IRA โ€” Growth and qualified withdrawals are completely tax-free (see our Roth IRA Calculator)
  • Max your 401(k) โ€” Tax-deferred growth delays your tax burden (explore our 401(k) vs IRA comparison)
  • Spread large sales across tax years โ€” Avoid pushing yourself into a higher bracket

The IRS’s Publication 550 on Investment Income and Expenses covers all deductible investment costs that can reduce your taxable gain.


7 Stock Profit Calculation Mistakes That Cost Investors Money

Most retail investors make at least two of these errors. Each one distorts your true return.

Stock Calculator checklist showing common mistakes investors make when calculating stock profit
Seven common mistakes investors make when calculating stock profit and returns.

1. Ignoring Brokerage Fees

A $10 round-trip commission on a $500 trade is a 2% automatic loss before the stock moves. Always include buy and sell fees in your stock calculator inputs. On high-frequency trades, fees can consume 15โ€“30% of your actual profit.

2. Forgetting Dividends in Total Return

Price return and total return are not the same. A stock up 8% that paid a 3% dividend delivered an 11% total return. Ignoring dividends causes investors to underestimate returns on income stocks by 20โ€“30% over 10 years. Always input your total cash dividends received.

3. Confusing Gross Profit With After-Tax Profit

Your gross profit is not your take-home money. On a $20,000 gain taxed at the short-term rate (22%), you owe $4,400 to the IRS. Always calculate your after-tax ROI before declaring a trade a success.

4. Failing to Adjust for Stock Splits

If NVIDIA split 10-for-1 after you bought at $800, your cost basis per share is now $80 โ€” not $800. Calculating profit against the pre-split price will show you a false loss on every calculation. Enter splits in the calculator to get accurate numbers.

5. Using Simple ROI for Multi-Year Holdings

Comparing a 3-year stock return to a 1-year bond return using simple ROI is meaningless. Always use CAGR for holdings over 12 months. It’s the only metric that levels the playing field across different time horizons.

6. Ignoring the Break-Even Price Before Selling

Many investors sell at an arbitrary “round number” price without knowing if they’re above or below their actual break-even. Calculate your break-even sell price first โ€” then decide whether to hold, sell, or take a partial position.

7. Mixing Short-Term and Long-Term Positions Without Tracking

Selling shares from different purchase dates in the wrong order can trigger short-term capital gains tax on a position you intended to hold long-term. Track each buy lot separately. The wrong tax treatment on a $50,000 gain could cost you an extra $10,000 in taxes.


Expert Insight: “Many retail investors underestimate their true cost basis because they forget to account for split adjustments, reinvested dividends, and brokerage fees. A comprehensive stock calculator eliminates this guesswork and protects investors from costly tax reporting errors.”

โ€” Michael R. Thompson, CFA | Senior Investment Analyst, financeauthorityhub.com

The SEC’s Investor.gov platform emphasizes that understanding your true investment returns โ€” not just apparent gains โ€” is a foundational requirement for informed investing decisions.

For investors tracking multiple positions, our Investment Calculator and ROI Calculator provide portfolio-level return analysis alongside this stock profit calculator.


Frequently Asked Questions โ€” Stock Calculator

1. What is a stock calculator?

A stock calculator is a free online tool that computes the profit or loss, ROI, CAGR, break-even price, and after-tax returns from buying and selling stocks. It removes manual calculation errors and accounts for fees, dividends, and taxes in a single calculation.

2. How do I calculate profit from selling stock?

Subtract your total cost basis (shares ร— buy price + buy fee) from your total proceeds (shares ร— sell price โˆ’ sell fee), then add any dividends received. The formula is: Net Profit = Proceeds + Dividends โˆ’ Cost Basis.

3. What is ROI in stock investing?

ROI (Return on Investment) measures your net profit as a percentage of your total cost. Formula: ROI = (Net Profit รท Cost Basis) ร— 100. A 20% ROI means you earned $20 for every $100 invested.

4. What is CAGR and how is it calculated?

CAGR (Compound Annual Growth Rate) is the annualized return of an investment over multiple years. Formula: CAGR = (End Value รท Start Value)^(1/Years) โˆ’ 1. It is the most accurate way to compare multi-year stock performance against benchmarks.

5. How is stock profit taxed in 2026?

Stocks held 12 months or less are taxed as ordinary income (10%โ€“37%). Stocks held over 12 months qualify for long-term capital gains rates of 0%, 15%, or 20%, depending on your taxable income. See the IRS capital gains guide for the official 2026 brackets.

6. What is a break-even stock price?

The break-even price is the minimum sell price at which you recover your full investment including all fees. Formula: Break-Even Price = (Cost Basis โˆ’ Dividends + Sell Fee) รท Shares Sold. Selling above this price generates a profit; below it generates a loss.

7. Does the stock calculator include dividends?

Yes. Enter your total cash dividends received in the “Dividends received” field. The calculator adds dividends to your proceeds to calculate total return โ€” which is how professional investors measure stock performance.

8. How do stock splits affect my profit calculation?

A stock split increases your share count and reduces your price per share proportionally โ€” but does not change your total investment value. The calculator adjusts your split-adjusted shares and average cost automatically when you enter the split ratio.

9. Can I use this calculator for DCA investments?

Yes. Click “Add buy lot” for each purchase entry. The calculator averages your cost basis across all lots and computes your total return accurately โ€” essential for investors who buy consistently over time. For broader DCA strategy planning, explore our Savings Calculator.

10. What is the difference between profit and total return?

Profit = Proceeds โˆ’ Cost Basis (price change only). Total return includes price change plus dividends received. For dividend-paying stocks, total return can be 20โ€“40% higher than price return over a decade.

11. Is this stock calculator free to use?

Yes. This stock calculator is 100% free with no signup, no account, and no ads. All calculations run directly in your browser. Download your results as a CSV file using the “Download CSV” button.


โš ๏ธ Disclaimer: This stock calculator and all content on this page are for educational and informational purposes only. Results are estimates based on data you enter and do not constitute financial, investment, or tax advice. Tax laws vary by jurisdiction and are subject to change. Please consult a qualified CPA, financial advisor, or tax professional before making investment decisions. Past performance does not guarantee future results. All investments carry risk, including the potential loss of principal. See the SEC’s Investor Education resources for independent investing guidance.


Authors

  • Michael R Thompson finance expert and CFA with 28 years experience

    Professional Designation: Chartered Financial Analyst (CFA) Experience: 28 years | Location: New York, United States Primary Expertise: Capital Markets, Portfolio Strategy, Macroeconomic Analysis Education: BA Economics, University of Michigan (1995); MBA Finance, Columbia Business School (1998) Career Overview: Michael R. Thompson is a veteran capital markets strategist with nearly three decades of experience navigating global financial markets across multiple economic cycles. He began his career in the late 1990s during the technology boom, gaining early exposure to speculative market behavior, valuation excesses, and systemic risk. Professional Experience & Impact: Over his career, Michael has managed and advised institutional portfolios exceeding $4.5 billion in cumulative assets, including pension funds, endowments, insurance portfolios, and ultra-high-net-worth private clients. Specialized Focus & Methodology: He applies a valuation-first investment discipline, combining macroeconomic regime analysis with risk-adjusted portfolio construction and behavioral finance principles. Thought Leadership & Contributions: Michaelโ€™s insights have been cited in institutional strategy briefings and investment committee materials. He has mentored CFA candidates and junior analysts throughout his career. Role at Finance Authority Hub: Senior Markets & Investment Strategy Contributor, overseeing equities, asset allocation, and macroeconomic research content. Professional Affiliations: CFA Institute; New York Society of Security Analysts Languages: English Areas of Expertise: โ€ข Equity valuation โ€ข Macroeconomic cycles โ€ข Portfolio diversification โ€ข Inflation risk โ€ข Long-term investing

  • Daniel Moreau finance expert in retirement and tax planning

    Professional Designation: CPA; CFP Experience: 19 years | Location: Toronto, Canada Primary Expertise: Retirement Planning, Personal Finance, Tax Strategy Education: BCom Finance, University of Toronto (2004) Career Overview: Daniel Moreau is a senior personal finance specialist with extensive experience designing retirement income strategies for Canadian households. Professional Experience & Impact: He has worked with families, professionals, and business owners to optimize retirement income, tax efficiency, and long-term financial security. Specialized Focus & Methodology: Daniel emphasizes practical planning frameworks grounded in regulation and real-life constraints. Role at Finance Authority Hub: Personal Finance & Retirement Planning Contributor. Professional Affiliations: Financial Planning Standards Council (Canada) Languages: English; French Areas of Expertise: โ€ข Retirement income โ€ข Tax efficiency โ€ข Personal finance systems

  • Eleanor Whitfield finance expert with 24 years in corporate finance

    Professional Designation: Fellow Chartered Accountant (FCA) Experience: 24 years | Location: London, United Kingdom Primary Expertise: Corporate Finance, Mergers & Acquisitions, Financial Governance Education: BSc Accounting & Finance, London School of Economics (1999) Career Overview: Eleanor Whitfield is a senior corporate finance professional with over two decades of experience advising UK and European companies on acquisitions, restructuring, and governance reform. Professional Experience & Impact: She has advised boards and executive teams through complex transactions, audit reviews, and regulatory transitions, helping organizations strengthen transparency and investor confidence. Specialized Focus & Methodology: Eleanor focuses on governance-driven value creation, ensuring financial decisions align with long-term shareholder and stakeholder interests. Thought Leadership & Contributions: She regularly contributes commentary on corporate accountability and ethical finance practices. Role at Finance Authority Hub: Corporate Finance & Governance Lead Contributor. Professional Affiliations: ICAEW Languages: English; French Areas of Expertise: โ€ข M&A strategy โ€ข Corporate governance โ€ข Financial disclosures โ€ข Audit oversight

Editorial process

About this content

This content is prepared through a structured publishing workflow with dedicated writing, financial review and editorial checks.

3 contributors
Important notice

Informational disclaimer

The content on Finance Authority Hub is provided for general informational and educational purposes only and should not be considered personalized financial, investment, tax, legal, or professional advice. Financial decisions depend on your individual goals, income, risk tolerance, location, and regulatory situation. Before acting on any information, strategy, estimate, or calculator result, consult a qualified licensed professional who can evaluate your specific circumstances.