Bitget App
Trade smarter
Buy cryptoMarketsTradeFuturesEarnSquareMore
daily_trading_volume_value
market_share59.38%
Current ETH GAS: 0.1-1 gwei
Hot BTC ETF: IBIT
Bitcoin Rainbow Chart : Accumulate
Bitcoin halving: 4th in 2024, 5th in 2028
BTC/USDT$ (0.00%)
banner.title:0(index.bitcoin)
coin_price.total_bitcoin_net_flow_value0
new_userclaim_now
download_appdownload_now
daily_trading_volume_value
market_share59.38%
Current ETH GAS: 0.1-1 gwei
Hot BTC ETF: IBIT
Bitcoin Rainbow Chart : Accumulate
Bitcoin halving: 4th in 2024, 5th in 2028
BTC/USDT$ (0.00%)
banner.title:0(index.bitcoin)
coin_price.total_bitcoin_net_flow_value0
new_userclaim_now
download_appdownload_now
daily_trading_volume_value
market_share59.38%
Current ETH GAS: 0.1-1 gwei
Hot BTC ETF: IBIT
Bitcoin Rainbow Chart : Accumulate
Bitcoin halving: 4th in 2024, 5th in 2028
BTC/USDT$ (0.00%)
banner.title:0(index.bitcoin)
coin_price.total_bitcoin_net_flow_value0
new_userclaim_now
download_appdownload_now
how do you calculate the profit of a stock

how do you calculate the profit of a stock

A practical, step-by-step guide that explains how do you calculate the profit of a stock for equities and crypto tokens—covering cost basis, realized vs. unrealized gains, dividends/staking, fees, ...
2026-02-03 11:44:00
share
Article rating
4.4
110 ratings

How to Calculate the Profit of a Stock

Quick answer: To determine how do you calculate the profit of a stock you start with the cost basis (purchase price plus fees), compare proceeds when you sell (minus selling fees), add or subtract dividends or staking rewards, and adjust for corporate or token events and taxes. Accurate tracking matters for performance measurement and tax reporting.

In this guide you will learn exactly how do you calculate the profit of a stock for both traditional equities and crypto tokens. The step-by-step sections explain key concepts (cost basis, realized vs. unrealized gains, dividends/staking), core formulas (dollar profit, percent return, total return, CAGR), adjustments (fees, taxes, splits), multiple-lot handling, worked examples, and tools including Bitget and Bitget Wallet for recordkeeping.

As of 2026-01-23, according to Investopedia and NerdWallet reporting, investors increasingly demand precise cost-basis tracking and tax-aware tools to calculate gains across multiple asset types.

Key concepts

Understanding the vocabulary and mechanics before you compute profit is essential. This section defines the terms you will use when answering the core question: how do you calculate the profit of a stock.

Cost basis

  • Definition: Cost basis is the amount you paid to acquire the shares or tokens, typically the purchase price multiplied by the number of shares, plus transaction costs (commissions, exchange fees, spread costs). For crypto, include on-chain fees where applicable.
  • Why it matters: Cost basis is the starting point for calculating any realized or unrealized profit.

Example: If you bought 100 shares at $20.00 and paid a $10 commission, cost basis = (100 × $20.00) + $10 = $2,010.

Realized vs. unrealized gains

  • Unrealized (paper) gain/loss: The change in value of assets you still hold. It is not taxable until realized in most jurisdictions.
  • Realized gain/loss: The profit or loss when you dispose of the asset (sell, exchange, or otherwise transfer). Realized gains are typically taxable events.

When asking how do you calculate the profit of a stock, decide first whether you mean realized profit (after sale) or unrealized profit (current market value minus basis).

Dividends, staking, and other distributions

  • Dividends (stocks): Cash or stock distributions increase total return. Cash dividends received should be added to proceeds for total return calculations.
  • Dividend reinvestment: When dividends buy additional shares, adjust the cost basis to include the reinvested amount and record the new lot(s).
  • Crypto staking/yields: Staking rewards or DeFi yields are treated as income in many jurisdictions and affect total return and sometimes cost basis (depending on rules).

Transaction costs and other adjustments

  • Fees reduce net profit. Include broker commissions, spread costs, exchange fees, bank transfer fees, and margin interest.
  • For margin trading, subtract borrow/margin interest from gross profit to get net profit.

Corporate actions and token events

  • Stock splits and reverse splits: Adjust per-share basis and share count (e.g., a 2-for-1 split halves per-share basis and doubles share count).
  • Spin-offs, mergers, and airdrops: These events can change basis allocation across resulting assets; follow brokerage or official guidance to reallocate basis correctly.

Basic profit formulas and metrics

This section gives the core math you will use when answering how do you calculate the profit of a stock.

Dollar profit (nominal profit)

  • Formula (single lot, sale):

    Dollar profit = (Sell price − Purchase price) × Number of shares − Total fees + Dividends received

  • Example (no dividends): Sell 100 shares at $30, bought at $20, fees $15 total:

    Dollar profit = (30 − 20) × 100 − 15 = $1,000 − 15 = $985.

Percentage return

  • Formula:

    Percent return = [(Sell price − Purchase price) / Purchase price] × 100

  • Use percentage return to compare investments of different sizes.

Example: (30 − 20) / 20 × 100 = 50%.

Total return

  • Combines price appreciation and income (dividends or staking rewards).

  • Formula (simple):

    Total return (%) = [(Ending value + Income received − Beginning value) / Beginning value] × 100

If dividends are reinvested, treat the ending value as including the value of reinvested shares.

Annualized return and CAGR

  • CAGR (Compound Annual Growth Rate) helps compare returns across different holding periods.

  • Formula:

    CAGR = [(Ending value / Beginning value)^(1 / years)] − 1

Use CAGR to compare investments held for different durations.

Adjustments to basic calculations

Real-life profit calculations usually need adjustments. Below are common adjustments and how they change the math for how do you calculate the profit of a stock.

Accounting for fees and commissions

  • Subtract all buy-side and sell-side fees from gross profit to get net profit.
  • If fees are charged as a percentage, convert to dollar amount based on trade value.

Example: Buy $2,000 worth of shares with a 0.2% fee ($4) and sell for $2,500 with 0.2% fee ($5). Gross profit = $500; net profit = $500 − $4 − $5 = $491.

Including dividends and reinvestments

  • Cash dividends: Add to proceeds or include in income when reporting total return.
  • DRIP (dividend reinvestment): Increase share count and adjust cost basis—each reinvestment creates a new lot at the reinvestment price.

Taxes and net proceeds

  • Pre-tax vs. after-tax profit: Taxes reduce net profit. Apply short-term or long-term capital gains tax rates according to holding period.
  • Many jurisdictions tax dividends separately (qualified vs. ordinary dividends).
  • For crypto tokens, tax treatment varies—treat staking/distribution income according to local law.

When evaluating how do you calculate the profit of a stock for after-tax decisions, compute both pre-tax profit and estimated after-tax profit.

Currency conversion and FX effects

  • If you purchase a foreign stock or token in a currency different from your reporting currency, convert both purchase and sale amounts to the reporting currency using exchange rates at the time of each trade.
  • FX gains or losses can materially affect the profit figure.

Multiple lots and cost-basis methods

Investors often buy the same security across multiple dates and prices. The choice of cost-basis method affects realized profit and taxes.

Lot-level tracking

  • Track each lot separately (purchase date, number of shares, purchase price, fees). When selling, allocate sold shares to specific lots to compute realized profit.

Common cost-basis methods

  • FIFO (First In, First Out): The earliest purchased shares are considered sold first.
  • Specific identification: You specify which lot(s) you sold (best for tax management where allowed).
  • Average cost: Common for mutual funds and allowed for some crypto tax methods—computes an average per-share cost basis across all holdings.
  • LIFO: Less common and not always allowed for tax reporting.

Example: You bought 50 shares at $10 and 50 at $20. Selling 60 shares under FIFO sells the 50 at $10 and 10 of the $20 lot.

Adjusting for splits and corporate actions

  • After a split, recalculate per-share cost basis: New per-share basis = Old total basis / New total shares.
  • For spin-offs, follow brokerage guidance to allocate basis between original and spun-off securities.

Examples and worked calculations

Examples show explicit steps for how do you calculate the profit of a stock in common scenarios.

Example 1 — Simple purchase and sale (no dividends, no fees)

  • Buy 200 shares at $15.00. Sell all 200 shares at $22.50.

    Dollar profit = (22.50 − 15.00) × 200 = $7.50 × 200 = $1,500.

    Percent return = (7.50 / 15.00) × 100 = 50%.

Example 2 — Including fees and a dividend

  • Buy 100 shares at $40.00, buy-side fee $8. Sell at $52.00, sell-side fee $8. Received $100 dividend during holding period.

    Gross gain = (52 − 40) × 100 = $1,200.

    Net after fees = $1,200 − $8 − $8 = $1,184.

    Total net profit including dividend = $1,184 + $100 = $1,284.

    Percent total return = (Ending value + Dividends − Beginning value − Fees) / (Beginning value + Buy fees) × 100

    ≈ ($5,200 + $100 − $4,000 − $8) / ($4,000 + $8) × 100 ≈ 32.0%.

Example 3 — Multiple-lot sale and cost-basis method impact

You bought:

  • 100 shares @ $10.00 (Lot A)
  • 100 shares @ $20.00 (Lot B)

You sell 150 shares at $25.00. Ignore fees for simplicity.

  • Under FIFO: sold 100 from Lot A and 50 from Lot B: Cost = 100×$10 + 50×$20 = $1,000 + $1,000 = $2,000. Proceeds = 150×$25 = $3,750. Realized profit = $1,750.

  • Under Specific ID (choose high-cost lots first): sell 150 from Lot B then Lot A: Cost = 100×$20 + 50×$10 = $2,000 + $500 = $2,500. Realized profit = $3,750 − $2,500 = $1,250.

Same sale, different realized profit and tax outcome.

Example 4 — Crypto/token example with staking and an airdrop

  • Buy 1,000 tokens at 0.50 USD each = $500. Purchase network fee $2.

  • During holding period receive staking rewards worth $30 (tokens valued at receipt time); an airdrop valued at $20 at receipt.

  • Sell all tokens later at 0.90 USD each. Sell fee $3. Assume staking rewards were taxable upon receipt (treated as income) and not added to basis.

    Cost basis = $500 + $2 = $502. Proceeds = 1,000 × $0.90 − $3 = $900 − $3 = $897. Gross profit = $897 − $502 = $395. If staking rewards ($30) were taxed as income earlier, they should be included in your total return but are not necessarily part of the original basis (jurisdiction-dependent). Conservative total realized economic gain = $395 + $30 + $20 = $445 (pre-tax).

This example underscores the need to track rewards and airdrops at the time of receipt and follow local tax guidance.

Reporting and tax implications

Calculating profit is only part of the story—reporting to tax authorities requires care.

Taxable events

  • Stocks: Selling, exchanging, or certain corporate actions (e.g., receiving cash in a merger) are taxable events.
  • Crypto: Many jurisdictions treat sales, exchanges, spending, swaps, and certain DeFi activities as taxable events. As of 2026-01-23, tax authorities worldwide have clarified that converting crypto to fiat or swapping tokens is often taxable.

Short-term vs. long-term gains

  • Short-term gains: Assets held less than the threshold (commonly one year) may be taxed at ordinary income rates.
  • Long-term gains: Assets held longer than the threshold often receive favorable capital gains rates.

Wash sale rules and crypto considerations

  • Wash sale rules (for stocks): Disallow claims of loss if you repurchase substantially identical securities within a specified window (typically 30 days). This rule affects realized loss recognition for tax purposes in many jurisdictions.
  • Crypto: Some tax authorities have stated wash sale rules do not apply to crypto, while others are evaluating policy; check local guidance.

Recordkeeping requirements

  • Maintain trade confirmations, broker/exchange statements, deposit/withdrawal records, and records of dividends, staking rewards, and corporate/token events.
  • For complex activities, consider exporting transaction histories and using tax software.

As of 2026-01-23, financial institutions like major brokerages and tax software providers recommend keeping at least several years of transaction history; check local tax law for exact retention periods.

Tools, calculators, and recordkeeping

When answering how do you calculate the profit of a stock at scale, tools are invaluable.

Broker and bank calculators

  • Many brokerages and banks provide stock profit calculators to compute net proceeds and percent return quickly. Use these for simple trades and to verify manual calculations.
  • For crypto and cross-asset portfolios, use specialized cost-basis and tax calculation tools.

Note: When selecting a trading platform, consider Bitget for spot and derivatives trading and Bitget Wallet for custody and on-chain tracking. Bitget offers portfolio views and exportable statements that simplify profit calculations and tax reporting.

Dedicated spreadsheets and portfolio trackers

  • Spreadsheets: Build or use templates that track lots, fees, dividends, reinvestments, and realized/unrealized P&L.
  • Portfolio trackers: Many applications import broker data and provide lot-level views. Ensure they support your chosen cost-basis method.

Crypto wallet and exchange tools

  • Use wallets like Bitget Wallet for clear on-chain history and exportable transaction logs.
  • For tokens, ensure the tool records staking, airdrops, swaps, and DeFi interactions for accurate basis computation.

Special / advanced situations

Some scenarios complicate how do you calculate the profit of a stock; here are concise notes on frequent complexities.

Margin trading and borrow costs

  • Subtract margin interest and financing costs from gross profit.
  • Remember that financing charges reduce net returns and often are deductible only under specific rules.

Options, derivatives, and corporate compensation

  • Options and derivatives: Profit computation depends on option premium, exercise price, fees, and assignment. Complex instruments often require specialized tax treatment.
  • RSUs and stock grants: RSUs typically create ordinary income on vesting; the cost basis then equals the amount included as income.

International tax and cross-border holdings

  • Watch for source-country withholding on dividends, foreign tax credits, and reporting requirements for foreign accounts.
  • Convert all amounts to your tax reporting currency using proper exchange rates at transaction times.

Token-specific issues

  • Token forks, swaps, and complex DeFi yields may create multiple taxable events. Record the timestamp and value at receipt for each event.

Best practices for investors

  • Keep detailed records for each trade, dividend, staking reward, and corporate/token event.
  • Choose a cost-basis method allowed in your jurisdiction and apply it consistently.
  • Reconcile broker/exchange reports with your own records periodically.
  • Use reputable calculators and tools; where helpful, prefer Bitget and Bitget Wallet for consolidated views.
  • Consult a tax professional for complex situations.

Frequently asked questions (FAQ)

Q: How do you calculate the profit of a stock if you haven’t sold it yet?

A: For an unrealized profit, subtract your cost basis from the current market value: Unrealized profit = (Current price − Purchase price) × Shares. This is a paper profit until you sell.

Q: How do dividends affect profit calculations?

A: Cash dividends increase total return. Add dividends received to net proceeds when calculating total profit. If dividends are reinvested, increase your cost basis by the reinvested amount.

Q: What counts in cost basis?

A: Cost basis typically includes purchase price × shares plus transaction fees and certain acquisition costs. For stock grants, basis often includes the fair market value recognized as income.

Q: Which cost-basis method should I use?

A: Use the method allowed and optimal for your tax situation (FIFO, specific ID, average cost). Apply it consistently and follow brokerage reporting options.

Q: Where can I get statements that simplify calculations?

A: Brokerages like Bitget provide trade confirmations and downloadable statements. Use these exports with portfolio trackers or spreadsheets to automate calculations.

References and further reading

  • NerdWallet: stock profit calculators and guides on returns and fees.
  • Charles Schwab: guidance on realized vs. unrealized gains and cost-basis reporting.
  • SoFi: practical steps on calculating share profits and total return.
  • Investopedia: definitions and Q&A about gains, losses, and investment returns.
  • RoboMarkets and Public: examples showing percent return and when to realize profits.
  • Calculator Academy and Fidelity: calculators and examples for equity profit computation.

As of 2026-01-23, these resources emphasize good recordkeeping and the need for tax-aware tools when calculating profits across stocks and tokens.

Further exploration: track your lots and tax implications using Bitget and Bitget Wallet for centralized trade history, staking records, and exportable statements that simplify how do you calculate the profit of a stock across many trades. For complex portfolios or cross-border tax questions, consult a qualified tax adviser.

  • Dollar profit (single lot) = (Sell price − Purchase price) × Shares − Fees + Dividends
  • Percent return = (Sell price − Purchase price) / Purchase price × 100
  • Total return (%) = [(Ending value + Income − Beginning value) / Beginning value] × 100
  • CAGR = (Ending value / Beginning value)^(1 / years) − 1
The content above has been sourced from the internet and generated using AI. For high-quality content, please visit Bitget Academy.
Buy crypto for $10
Buy now!

Trending assets

Assets with the largest change in unique page views on the Bitget website over the past 24 hours.

Popular cryptocurrencies

A selection of the top 12 cryptocurrencies by market cap.