Stock Profit Calculator

Calculate your gains, losses, ROI, and capital gains tax on stock trades

Position 1
$
$
$
$
%
%

Rates vary by income. Short-term: 10-37%, Long-term: 0%, 15%, or 20%.

Total Profit / Loss
$2,000.00
Return: 20.00%
$10,000
Total Cost
$12,000
Total Revenue
0%
Annualized Return
$0.00
Break-Even Price

Capital Gains Tax Estimate

Holding Period Short-Term
Holding Duration 0 days
Taxable Gain $2,000
Tax Rate 22%

Estimated Tax $440
After-Tax Profit $1,560

Excel Formula

Calculate stock profit in Excel:

=((B2-A2)*C2)-(D2+E2)

Where: A2=Buy Price, B2=Sell Price, C2=Shares, D2=Buy Fee, E2=Sell Fee

Want AI-powered predictions for your stock trades? Try SharePreds

How to Calculate Stock Profit

Calculating stock profit is straightforward: Profit = (Sell Price - Buy Price) × Shares - Fees. However, understanding your true return requires considering commissions, taxes, and holding period.

For example, if you buy 100 shares at $50 ($5,000 total) and sell at $60 ($6,000 total), your gross profit is $1,000. After a $10 commission each way, your net profit is $980—a 19.6% return on your $5,010 investment.

Understanding Capital Gains Tax

When you sell stock at a profit, you owe capital gains tax. The rate depends on how long you held the investment:

  • Short-Term (less than 1 year): Taxed as ordinary income at your marginal rate (10-37%)
  • Long-Term (1 year or more): Preferential rates of 0%, 15%, or 20% based on income

Our calculator automatically determines whether your gain is short-term or long-term based on your buy and sell dates, then estimates the tax owed.

Short Selling Explained

Short selling is betting that a stock will decline. You borrow shares, sell them at the current price, then buy them back later (hopefully cheaper) to return to the lender.

Profit on a short sale = (Sell Price - Buy Price) × Shares, where you sell first at a higher price and buy back at a lower price. Use our "Short" toggle to calculate short position profits correctly.

Frequently Asked Questions

Use the formula: =((Sell_Price - Buy_Price) * Shares) - (Buy_Fee + Sell_Fee). For ROI percentage: =Profit / (Buy_Price * Shares + Buy_Fee) * 100. Set up columns for Buy Price, Sell Price, Shares, and Fees, then reference the cells in your formula.

Gross profit is the raw difference between sell and buy prices times shares. Net profit subtracts commissions, fees, and potentially taxes. For investment decisions, always consider net profit as it reflects your actual take-home return.

Hold your investments for at least one year and one day to qualify for long-term capital gains rates (0%, 15%, or 20% vs. up to 37%). You can also offset gains with losses (tax-loss harvesting) or use tax-advantaged accounts like IRAs.

Annualized return converts your total return to a yearly equivalent, allowing fair comparison between investments held for different periods. A 10% return in 6 months is better than 15% over 2 years when annualized (21% vs 7%).

This calculator focuses on capital gains (price appreciation). For total return including dividends, add any dividends received to your profit. Use our Dividend Calculator for comprehensive dividend tracking and DRIP calculations.
Disclaimer: This calculator is for educational purposes only. Tax estimates are approximations and don't account for state taxes, NIIT, or your complete tax situation. Consult a tax professional for accurate tax advice. Past performance does not guarantee future results.

Related Calculators