Free to Use

Stock Profit Calculator โ€” Calculate Your Stock Investment Profit & Loss

Calculate your stock trading profit or loss instantly. Enter your buy price, sell price, number of shares, and any commissions to see your net profit, return on investment (ROI), break-even price, and total return percentage. Whether you're a day trader, long-term investor, or just tracking a single stock trade, this free stock profit calculator gives you a complete picture of your investment performance.

โœ… Stock profit calculated successfully!
โš ๏ธ Please enter valid buy price, sell price, and number of shares to calculate.

๐Ÿ“‹ Stock Profit Examples

Example 1: Profitable Stock Trade

Buy Price: $100.00 per share
Sell Price: $150.00 per share
Shares: 50
Commissions: $5 buy + $5 sell = $10 total

Cost Basis: (100 ร— 50) + 5 = $5,005.00
Proceeds: (150 ร— 50) โˆ’ 5 = $7,495.00
Profit: $7,495 โˆ’ $5,005 = $2,490.00
ROI: ($2,490 รท $5,005) ร— 100 = 49.75%

โœ… Excellent return with nearly 50% ROI on this trade.

Example 2: Break-even Trade (Zero Profit)

Buy Price: $50.00 per share
Sell Price: $52.00 per share
Shares: 200
Commissions: $10 buy + $10 sell = $20 total

Cost Basis: (50 ร— 200) + 10 = $10,010.00
Proceeds: (52 ร— 200) โˆ’ 10 = $10,390.00
Profit: $10,390 โˆ’ $10,010 = $380.00
ROI: ($380 รท $10,010) ร— 100 = 3.80%

๐Ÿ’ก Small but positive return. After accounting for commissions, the net gain is modest.

Example 3: Loss on Investment

Buy Price: $200.00 per share
Sell Price: $180.00 per share
Shares: 100
Commissions: $8 buy + $8 sell = $16 total

Cost Basis: (200 ร— 100) + 8 = $20,008.00
Proceeds: (180 ร— 100) โˆ’ 8 = $17,992.00
Loss: $17,992 โˆ’ $20,008 = โˆ’$2,016.00
ROI: (โˆ’$2,016 รท $20,008) ร— 100 = โˆ’10.08%

โš ๏ธ A loss of $2,016 or 10.08%. The stock dropped 10% and commissions added to the loss.

Example 4: Large Volume Trade (1000 Shares)

Buy Price: $10.00 per share
Sell Price: $10.50 per share
Shares: 1,000
Commissions: $0 (zero-commission broker)

Cost Basis: (10 ร— 1000) + 0 = $10,000.00
Proceeds: (10.50 ร— 1000) โˆ’ 0 = $10,500.00
Profit: $10,500 โˆ’ $10,000 = $500.00
ROI: ($500 รท $10,000) ร— 100 = 5.00%

โœ… A 5% return on a $10,000 position yields $500 profit with zero commissions thanks to commission-free trading.

๐Ÿงฎ Stock Profit Formulas

Total Cost Basis

Total Cost Basis = (Buy Price ร— Shares) + Buy Commission

This is your total investment โ€” the amount you paid to acquire the shares, including the commission charged when you bought them.

Total Proceeds

Total Proceeds = (Sell Price ร— Shares) โˆ’ Sell Commission

This is the total amount you receive from selling your shares, minus the commission charged at the time of sale.

Profit / Loss

Profit/Loss = Total Proceeds โˆ’ Total Cost Basis

A positive value means you made a profit; a negative value means you incurred a loss on the trade.

Return on Investment (ROI)

ROI % = (Profit / Total Cost Basis) ร— 100

ROI expresses your profit as a percentage of your total investment, accounting for all costs including commissions. This gives you the true percentage return on the capital you deployed.

Simple Return

Simple Return % = ((Sell Price โˆ’ Buy Price) / Buy Price) ร— 100

This is the raw price return of the stock itself, without accounting for the number of shares or commissions. It tells you how much the stock price moved in percentage terms.

Break-even Price

Break-even Price = (Total Cost Basis + Sell Commission) / Shares

The break-even price is the stock price at which you would neither make a profit nor incur a loss, accounting for all commissions on both sides of the trade.

๐Ÿ’ฐ
Instant Profit/Loss Calculation
Enter your buy and sell prices along with the number of shares to see your net profit or loss instantly, with clear green (profit) and red (loss) indicators.
๐Ÿ“Š
Comprehensive Return Metrics
View ROI percentage, simple return, total cost basis, total proceeds, and break-even price all in one place for a complete investment performance picture.
๐Ÿ’ต
Commission-Aware Calculations
Account for both buy and sell commissions to get the true net profit of your trade. Works with any commission amount including zero for commission-free brokers.
๐ŸŒ
Multi-Currency Support
Select from USD, CAD, GBP, or EUR for your trade. Perfect for investors trading on international exchanges or managing a multi-currency portfolio.

Understanding Stock Profits

Stock profit โ€” also called capital gain โ€” is the difference between the price at which you sell a stock and the price at which you bought it, minus any transaction costs like commissions. When the sell price exceeds the buy price after all costs, you've made a profit. When it's lower, you've incurred a loss.

Calculating stock profit accurately is essential for several reasons. First, it tells you whether your trading strategy is actually working โ€” a stock can go up in price but still result in a net loss if commissions eat into your gains. Second, understanding your profit helps with tax reporting, since capital gains and losses must be reported to tax authorities. Third, tracking profit per trade helps you evaluate which strategies and stocks are most effective for your portfolio.

Key Metrics Every Investor Should Track

For example, if you buy 100 shares of a stock at $50 each with a $5 commission, your cost basis is $5,005. If you later sell at $60 with another $5 commission, your proceeds are $5,995. Your net profit is $990, and your ROI is 19.78% โ€” a strong return. But if you had bought at $50 and sold at $51 with the same commissions, your profit would be just $90 (a 1.80% ROI), showing how commissions can significantly impact small gains.

Short-term vs Long-term Stock Profits

The holding period of your stock investment has significant implications for both your tax liability and your investment strategy. In most countries, including the United States, the tax treatment of stock profits depends on whether the trade qualifies as a short-term or long-term capital gain.

Short-term Capital Gains

If you hold a stock for one year or less before selling, any profit is classified as a short-term capital gain. Short-term gains are taxed at your ordinary income tax rate, which can be as high as 37% for top earners in the US. This makes short-term trading significantly less tax-efficient for investors in higher tax brackets. Day traders and active swing traders primarily generate short-term gains and must factor this tax burden into their profit calculations.

Long-term Capital Gains

If you hold a stock for more than one year before selling, the profit qualifies as a long-term capital gain. Long-term gains benefit from preferential tax rates โ€” typically 0%, 15%, or 20% in the US depending on your income level. This tax advantage is one of the primary arguments for a buy-and-hold investment strategy. Over time, the compounding effect of lower taxes can significantly boost your after-tax returns.

Tax-Loss Harvesting

Losses on stock trades aren't entirely wasted. Through a strategy called tax-loss harvesting, you can use capital losses to offset capital gains, reducing your overall tax bill. If your losses exceed your gains, you can deduct up to $3,000 ($1,500 if married filing separately) of net capital losses against ordinary income each year, with unused losses carrying forward to future years. This makes accurate profit and loss tracking essential for tax-efficient investing.

Use our stock profit calculator to track both winning and losing trades throughout the year. At tax time, you'll have a clear record of all your gains and losses, making it easier to implement tax-loss harvesting strategies and accurately report your trading activity.

Tax Implications of Stock Trading

Understanding the tax implications of stock trading is crucial for accurate profit calculation and financial planning. The tax treatment of your stock profits depends on several factors, including your holding period, the type of account you use, and your overall income level.

Tax-Advantaged Accounts vs Taxable Accounts

One of the most important distinctions in stock investing is between tax-advantaged accounts (like IRAs, 401(k)s, and Roth accounts) and regular taxable brokerage accounts. In tax-advantaged retirement accounts, you generally don't pay taxes on trading profits within the account โ€” taxes are deferred until withdrawal (traditional) or tax-free (Roth). In taxable accounts, however, every profitable trade triggers a taxable event. This means that active trading in a taxable account can create a significant annual tax liability that must be factored into your true net return.

Wash Sale Rule

The wash sale rule is an IRS regulation that prevents investors from claiming a tax loss on a security if they repurchase the same or a substantially identical security within 30 days before or after the sale. If you sell a stock at a loss and buy it back within the 61-day wash sale window (30 days before + day of sale + 30 days after), the loss is disallowed for tax purposes and must be added to the cost basis of the new position. This rule primarily affects active traders who might otherwise harvest losses while maintaining their market position.

Record Keeping for Tax Purposes

Accurate record keeping is essential for stock investors. For each trade, you should record: the date of purchase and sale, number of shares, buy and sell prices per share, total commissions and fees, and the resulting profit or loss. Our stock profit calculator helps you track these key metrics for every trade. At year-end, your broker will provide a Form 1099-B summarizing your realized gains and losses, but having your own records helps ensure accuracy and catch any discrepancies. Remember that certain corporate actions โ€” stock splits, dividends, mergers, and spin-offs โ€” can affect your cost basis and require adjustments to your profit calculations.

Frequently Asked Questions (FAQ)

How do I calculate stock profit including commissions?
Stock profit = Total Proceeds โˆ’ Total Cost Basis, where Total Cost Basis = (Buy Price ร— Shares) + Buy Commission and Total Proceeds = (Sell Price ร— Shares) โˆ’ Sell Commission. For example, if you buy 100 shares at $50 with a $5 commission, your cost basis is $5,005. If you sell at $60 with a $5 commission, your proceeds are $5,995. Your profit is $5,995 โˆ’ $5,005 = $990. Always include both buy and sell commissions for an accurate profit calculation.
What is ROI and how is it different from simple return?
ROI (Return on Investment) is your net profit expressed as a percentage of your total investment, including commissions: ROI % = (Profit รท Total Cost Basis) ร— 100. The simple return only looks at the stock price change: ((Sell Price โˆ’ Buy Price) รท Buy Price) ร— 100. ROI is the more accurate metric because it accounts for the actual amount of capital you deployed and all transaction costs. If you buy 50 shares at $100 with a $10 commission and sell at $150 with a $10 commission, your simple return is 50%, but your ROI is slightly less at 49.75% due to commissions.
What is the break-even price in stock trading?
The break-even price is the stock price at which you would neither make a profit nor incur a loss on your trade, after accounting for all commissions on both the buy and sell sides. It is calculated as: (Total Cost Basis + Sell Commission) รท Shares. If your break-even is $50.20 and the current price is $50.20, selling would result in zero net profit. Knowing your break-even price before entering a trade helps set realistic profit targets and stop-loss levels. It's especially important for low-priced stocks where commissions can represent a significant percentage of the trade value.
How are stock profits taxed?
Stock profits (capital gains) are taxed differently depending on how long you held the stock before selling. Short-term gains (held โ‰ค 1 year) are taxed at your ordinary income tax rate, which can be 10%โ€“37%. Long-term gains (held > 1 year) receive preferential rates of 0%, 15%, or 20% depending on your income. In taxable accounts, you'll receive a Form 1099-B from your broker each year summarizing your realized gains and losses. Capital losses can offset capital gains, and up to $3,000 of net losses can be deducted against ordinary income annually. Always consult a tax professional for advice specific to your situation.
Do I need to include dividends in my stock profit calculation?
This calculator focuses on capital gains โ€” the profit or loss from buying and selling a stock at different prices. Dividends are separate forms of investment income and are generally treated differently for tax purposes. Qualified dividends are taxed at long-term capital gains rates, while non-qualified dividends are taxed as ordinary income. For a complete picture of your total investment return, you should consider both capital gains and dividend income. Some investors use a total return metric that combines price appreciation with dividend income reinvested.
What is the difference between realized and unrealized stock profits?
Realized profit occurs when you actually sell your shares and convert the paper gain into actual cash. This is what our stock profit calculator measures โ€” the profit or loss from a completed trade. Unrealized profit (also called paper profit) is the gain in value of shares you still hold. For example, if you bought shares at $100 and they're now trading at $120, you have an unrealized profit of $20 per share โ€” but you haven't locked it in yet. Unrealized profits are not taxable; you only owe taxes on realized gains. However, unrealized losses also haven't been locked in, so the stock could recover before you sell.

โš ๏ธ Important Disclaimer: This Stock Profit Calculator is for educational and informational purposes only. It provides estimates based on the values you enter and is not a substitute for professional financial advice. Stock market investing involves risk, including the potential loss of principal. Past performance does not guarantee future results. Commission rates, tax rates, and currency exchange rates vary and should be verified with your broker and tax professional. This calculator does not account for dividends, stock splits, margin interest, short selling, options, or other complex investment scenarios. Always consult with a qualified financial advisor, tax professional, or investment professional for advice specific to your financial situation.