Stock Profit Calculator
Calculate stock profit with our free Stock profit Calculator. Compare rates, see projections, and make informed financial decisions.
Calculator
Adjust values & calculateFormula
Where Sell Price = price per share at sale, Buy Price = price per share at purchase, Shares = number of shares traded, Commission = brokerage fee per trade. Percentage return is calculated as (Profit / Total Buy Cost) × 100. Profit per share is Total Profit divided by number of shares.
Last reviewed: January 2026
Worked Examples
Example 1: Profitable Stock Trade
Example 2: Stock Trade with a Loss
Background & Theory
The Stock Profit Calculator applies the following established principles and formulas. Finance and investing rest on the foundational concept of the time value of money: a dollar received today is worth more than a dollar received in the future, because present funds can be deployed to earn a return. This principle underlies virtually every valuation technique in modern finance. The future value of a present sum P growing at rate r over n periods is expressed as FV = P(1 + r)^n, while the present value of a future cash flow FV is PV = FV / (1 + r)^n. Compound growth amplifies returns significantly over long horizons, a dynamic often described as the eighth wonder of the world. Net Present Value (NPV) extends these mechanics to evaluate investment projects by summing the present values of all expected cash flows minus the initial outlay: NPV = sum[CF_t / (1 + r)^t] - C_0. A positive NPV indicates the project creates value above the required return. The Internal Rate of Return (IRR) is the discount rate that sets NPV to zero, providing a single percentage benchmark for project comparison. The risk-return tradeoff is the central tension of investment theory. Higher expected returns generally require accepting greater uncertainty. Harry Markowitz formalized this in Modern Portfolio Theory by demonstrating that portfolio variance can be reduced through diversification when assets are imperfectly correlated. The efficient frontier represents the set of portfolios offering the maximum return for a given level of risk. The Capital Asset Pricing Model (CAPM) extends this by introducing the market portfolio as a reference, defining expected return as E(r) = r_f + beta * (E(r_m) - r_f), where beta measures an asset's sensitivity to systematic market risk. Asset classes — equities, fixed income, real assets, and alternatives — differ in their return profiles, liquidity, and correlations. Strategic asset allocation determines long-run target weights based on investor objectives and risk tolerance, while tactical allocation permits short-run deviations to exploit perceived mispricings. Discount rates used in valuation models must reflect the cost of capital appropriate to the risk of the cash flows being discounted, a point stressed in corporate finance texts from Brealey, Myers, and Allen through to Damodaran.
History
The history behind the Stock Profit Calculator traces back through the following developments. The formal practice of lending at interest dates to ancient Mesopotamia, where the Code of Hammurabi around 1750 BCE regulated interest rates on grain and silver loans. Banking as an institutional activity took root in medieval Italy, with merchant bankers in Florence and Venice financing trade across Europe through instruments such as bills of exchange. The Medici family operated one of the most sophisticated banking networks of the fifteenth century, pioneering double-entry bookkeeping and correspondent banking relationships. Organized equity markets emerged in the early seventeenth century. The Dutch East India Company (VOC), chartered in 1602, issued shares to the public and created the Amsterdam Stock Exchange — widely regarded as the world's first formal stock exchange. The VOC allowed investors to buy and sell shares freely, establishing the template for the joint-stock company. The period also produced the Dutch tulip mania of 1636 to 1637, one of history's first recorded speculative bubbles, in which tulip bulb futures contracts reached extraordinary prices before collapsing. England's financial revolution followed in the late seventeenth century with the founding of the Bank of England in 1694 and the development of government bond markets. The South Sea Bubble of 1720 illustrated the dangers of speculative excess and contributed to early securities regulation. Throughout the eighteenth and nineteenth centuries, industrialization created enormous demand for capital, fueling the expansion of stock exchanges in London, Paris, New York, and beyond. The New York Stock Exchange, formalized in 1817, became the world's dominant equities market by the twentieth century. The Great Crash of 1929 and subsequent Great Depression prompted the US Securities Act of 1933 and Securities Exchange Act of 1934, establishing the SEC and mandatory disclosure requirements. Harry Markowitz published his landmark portfolio selection paper in 1952, launching quantitative finance. The CAPM emerged in the 1960s through work by Sharpe, Lintner, and Mossin. John Bogle launched the first retail index fund in 1976, democratizing diversified investing and challenging active management orthodoxy.
Frequently Asked Questions
Formula
Profit = (Sell Price × Shares - Commission) - (Buy Price × Shares + Commission)
Where Sell Price = price per share at sale, Buy Price = price per share at purchase, Shares = number of shares traded, Commission = brokerage fee per trade. Percentage return is calculated as (Profit / Total Buy Cost) × 100. Profit per share is Total Profit divided by number of shares.
Worked Examples
Example 1: Profitable Stock Trade
Problem: You bought 200 shares of a tech stock at $45 per share and sold at $68 per share. Commission is $9.99 per trade. What is the profit?
Solution: Total buy cost: 200 x $45 + $9.99 = $9,009.99\nTotal sell revenue: 200 x $68 - $9.99 = $13,590.01\nTotal profit: $13,590.01 - $9,009.99 = $4,580.02\nPercentage return: ($4,580.02 / $9,009.99) x 100 = 50.83%\nProfit per share: $4,580.02 / 200 = $22.90
Result: Total Profit: $4,580.02 | Return: 50.83% | Profit Per Share: $22.90
Example 2: Stock Trade with a Loss
Problem: You bought 150 shares at $120 per share and had to sell at $95 per share. Commission is $9.99 per trade.
Solution: Total buy cost: 150 x $120 + $9.99 = $18,009.99\nTotal sell revenue: 150 x $95 - $9.99 = $14,240.01\nTotal loss: $14,240.01 - $18,009.99 = -$3,769.98\nPercentage return: (-$3,769.98 / $18,009.99) x 100 = -20.93%\nLoss per share: -$3,769.98 / 150 = -$25.13
Result: Total Loss: -$3,769.98 | Return: -20.93% | Loss Per Share: -$25.13
Frequently Asked Questions
How do I calculate stock profit or loss?
Stock profit or loss is calculated by subtracting your total cost basis from your total sale proceeds. The cost basis includes the purchase price multiplied by the number of shares plus any commissions or fees paid when buying. Sale proceeds equal the sell price multiplied by the number of shares minus any selling commissions. The formula is: Profit = (Sell Price x Shares - Sell Commission) - (Buy Price x Shares + Buy Commission). For example, if you bought 100 shares at $50 with a $10 commission and sold at $75 with a $10 commission, your profit is ($7,500 - $10) - ($5,000 + $10) = $7,490 - $5,010 = $2,480. Remember to account for taxes on any gains.
What is the difference between realized and unrealized profit?
Realized profit (or loss) occurs when you actually sell a stock and lock in the gain or loss. This triggers a taxable event in most jurisdictions. Unrealized profit (also called a paper gain) is the theoretical profit you would make if you sold the stock at its current market price, but since you have not sold, no tax liability is created. For example, if you bought shares at $50 and they are currently trading at $75, your unrealized gain is $25 per share. If the price drops to $60 before you sell, your realized gain when you finally sell would only be $10 per share. This distinction is crucial for tax planning and portfolio management, as you have control over when to realize gains or losses.
How are stock trading commissions structured?
Stock trading commissions vary by broker and have changed dramatically over the years. Many major online brokers like Fidelity, Charles Schwab, and Robinhood now offer commission-free trading for US-listed stocks and ETFs. However, commissions still exist in several scenarios: options trades may charge $0.50-$0.65 per contract, international stocks may incur fees of $1-$50 per trade, broker-assisted trades typically cost $20-$50, and some specialized brokers charge per-share fees (e.g., $0.005 per share with minimums). Even with zero-commission brokers, there are hidden costs like payment for order flow, wider bid-ask spreads, and regulatory fees (typically fractions of a cent per share). Always check your broker's fee schedule for the complete cost picture.
How do taxes affect stock trading profits?
In the United States, stock trading profits are subject to capital gains taxes. Short-term capital gains (stocks held less than one year) are taxed as ordinary income, which can range from 10% to 37% depending on your tax bracket. Long-term capital gains (stocks held more than one year) benefit from preferential rates of 0%, 15%, or 20% depending on your taxable income. Additionally, high earners may pay an extra 3.8% Net Investment Income Tax. You can offset gains with losses through tax-loss harvesting — if you have a $5,000 gain and a $3,000 loss, you only pay tax on $2,000. If your losses exceed gains, you can deduct up to $3,000 per year against ordinary income and carry forward remaining losses. Consider holding periods and tax implications before selling.
How do I verify Stock Profit Calculator's result independently?
The Formula section on this page shows the equation used. You can reproduce the calculation manually or in a spreadsheet using those steps. Compare your answer against the worked examples in the Examples section, which use known reference values so you can confirm the calculator is behaving as expected.
What inputs do I need to use Stock Profit Calculator accurately?
Each field is labelled with the required unit (metric or imperial). Gather your source values before starting — for example, a weight measurement in kilograms, a distance in metres, or a dollar amount — and enter them exactly as measured. The formula section on this page lists every variable and explains what each represents.
References
Reviewed by Sahil, Senior Finance & Tax Editor · Editorial policy