RealTools
Home · Investment Analysis & Valuation · Investment Profit Calculator

Investment Profit Calculator

Compute the raw transaction profit or loss on stock investments including broker commissions and asset quantities.

Calculator Panel

Calculation Ready

Enter your values above and click Calculate.

What This Calculator Does

This calculator determines the net profit (or loss) and return on investment (ROI) for a stock trade or capital asset transaction, factoring in purchase prices, sale prices, share quantities, and brokerage transaction fees.

How to Use This Calculator

Enter your per-share purchase price, per-share sale price, total number of shares, and any broker fees. Click Calculate to immediately find your total cost basis, net sale proceeds, net profit, and ROI.

How the Calculation Works

The underlying math engine processes your inputs using exact formulas. This systematic approach ensures professional, institutional-grade calculation precision:

Mathematical Formula

Profit ($) = (Sell Price * Shares - Fees) - (Buy Price * Shares + Fees) | ROI (%) = [Profit / Total Cost] * 100

Formula Legend:

  • · Sell Price = Selling price per share of the stock.
  • · Buy Price = Purchase price per share of the stock.
  • · Shares = Total quantity of shares traded.
  • · Fees = Combined transaction fees and broker commissions for buying and selling.

Practical Example

Suppose you purchase 500 shares of a stock at $45.00 per share, sell them later at $62.00 per share, and pay a flat commission fee of $15.00 on both the buy and sell orders:

Step-by-Step Mathematical Walkthrough:

  1. 1 Calculate gross purchase cost: 500 shares * $45.00 = $22,500. Add $15 buy fee for a total cost basis of $22,515.
  2. 2 Calculate gross sales proceeds: 500 shares * $62.00 = $31,000. Deduct $15 sell fee for net proceeds of $30,985.
  3. 3 Calculate net dollar profit: $30,985 (proceeds) - $22,515 (total cost) = $8,470 profit.
  4. 4 Calculate ROI percentage: ($8,470 profit / $22,515 total cost) * 100 = 37.62% ROI.

Important Assumptions & Notes

  • The trade involves buying shares first and selling them later (long position).
  • All transaction fees are input in absolute dollar values and represent the combined broker charges.
  • No dividend distributions occurred during the holding period.
  • Taxes are not deducted from the final net profit calculation.

Common Mistakes or Considerations

  • Neglecting to include broker commissions, which artificially inflates your calculated net profit.
  • Forgetting to subtract brokerage fees from gross proceeds during sales.
  • Assuming net profit is identical to gross capital gains without factoring in transaction costs.
  • Failing to plan for capital gains tax liabilities upon realizing trading profits.

Frequently Asked Questions

What is the difference between gross profit and net profit?

Gross profit is the difference between your buy and sell prices multiplied by the number of shares. Net profit deducts all broker commissions, fees, and transaction costs.

How is ROI (Return on Investment) calculated?

ROI is calculated by dividing net profit by your total cost basis (including buy commissions) and multiplying by 100 to get a percentage.

Can this calculator be used for short selling?

No, this calculator is designed for standard long trades where you buy first and sell later. For short trades, the formula would reverse.

Should I include transaction fees in both buy and sell steps?

Yes. Lenders and brokers charge fees on both purchase and liquidation, so you must include both to calculate true net profit.

How do taxes impact my stock trading profits?

Stock profits held for under a year are taxed at ordinary income rates, while stocks held for over a year benefit from lower long-term capital gains tax rates.

What does cost basis mean?

Cost basis is the total price paid to acquire an asset, including purchase price and any broker commission fees.