This calculator helps individual investors and financial planners estimate net profit from stock trades. It accounts for purchase and sale commissions, dividends, and capital gains taxes to give a complete financial picture. Use it to evaluate potential investments or analyze past trades with precision.
Stock Profit Calculator
Calculate your net profit after fees, dividends, and taxes
How to Use This Tool
Enter your stock trade details in the input fields above. Start with the required fields: purchase price per share, number of shares, and sale price per share. Then add any optional costs like commissions and dividends received. If applicable, enter your capital gains tax rate to see the after-tax profit. Click "Calculate Profit" to see a complete breakdown including net profit and return on investment percentage.
Formula and Logic
The calculator uses the following standard investment profit formula:
- Total Investment = (Purchase Price × Shares) + Buy Commission
- Total Revenue = (Sale Price × Shares) - Sell Commission + Dividends
- Capital Gain = Total Revenue - Total Investment
- Tax on Gain = Capital Gain × (Tax Rate / 100) [only if Capital Gain > 0]
- Net Profit = Capital Gain - Tax on Gain
- Return on Investment (ROI) = (Net Profit / Total Investment) × 100%
Practical Notes
For accurate results, consider these real-world factors:
- Commission fees vary by broker. Many now offer $0 trades, but some charge per trade or have account minimums. Always include actual fees paid.
- Dividends are typically paid quarterly. Include all dividends received during the holding period, even if reinvested.
- Tax implications depend on holding period (short-term vs long-term capital gains) and your tax bracket. Short-term gains (held <1 year) are taxed as ordinary income; long-term gains have lower rates (0%, 15%, or 20% for most investors in 2024).
- Currency all inputs must be in the same currency. The calculator outputs USD but you can mentally convert if trading in other currencies.
- Fractional shares are supported if your broker allows them. Use decimal values for share count (e.g., 0.5 shares).
Why This Tool Is Useful
This calculator helps you make informed investment decisions by showing the true profit after all costs. It's valuable for:
- Comparing potential stock investments before buying
- Analyzing completed trades to understand actual returns
- Planning for tax obligations by estimating capital gains
- Evaluating the impact of commissions and dividends on overall returns
- Setting realistic profit targets that account for real-world trading costs
Frequently Asked Questions
What costs should I include in the commission fields?
Include any fees paid to buy or sell the stock: brokerage commissions, exchange fees, or platform charges. If your broker offers $0 trades, enter 0. Some brokers charge per-share fees for very low-priced stocks—include those if applicable.
How do I handle stock splits or dividend reinvestments?
For stock splits, adjust your share count and purchase price to reflect the split ratio. For dividend reinvestments (DRIP), treat each reinvestment as a new purchase with its own cost basis, then sum all purchase costs and total shares. This calculator assumes a single purchase and sale; for multiple buys/sells, calculate each lot separately or use a portfolio tracker.
Should I include inflation in my calculations?
This calculator shows nominal profit (actual dollars). To measure real purchasing power, you'd adjust for inflation separately. For long-term investments, real returns (nominal return minus inflation) matter more. A rough rule: subtract average inflation rate (e.g., 3%) from your ROI percentage to estimate real return.
Additional Guidance
Remember that past performance doesn't guarantee future results. This calculator shows mechanical profit based on inputs you provide—it doesn't predict future stock prices. Use it as a planning tool, not investment advice. For tax reporting, consult a tax professional; capital gains tax rules vary by country and individual circumstances. Keep records of all trades, commissions, and dividends for accurate tax filing.
Consider using this calculator alongside a budgeting tool to see how investment gains fit into your overall financial plan. Even small differences in commissions or tax rates can significantly impact long-term wealth accumulation, especially with frequent trading.