Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Finance
  3. /Investment & Retirement Calculators
  4. /Stock Calculator

Stock Calculator

Calculator

Results

Total Cost Basis

$5,000.00

Current Value

$7,500.00

Unrealized Profit / Loss

$2,500.00

Total Return %

50

%

Annualized Return (CAGR)

14.47

%

After-Tax Profit

$2,125.00

Profit per Share

$25.00

Results

Total Cost Basis

$5,000.00

Current Value

$7,500.00

Unrealized Profit / Loss

$2,500.00

Total Return %

50

%

Annualized Return (CAGR)

14.47

%

After-Tax Profit

$2,125.00

Profit per Share

$25.00

The Stock Calculator helps investors quickly calculate the profit or loss on a stock position by comparing the purchase cost basis to the current market value. Whether you are evaluating a potential trade, reviewing your portfolio performance, or calculating realized gains for tax purposes, this tool provides instant, accurate results.

Stock investing is one of the primary wealth-building methods available to individual investors. Over the past century, the U.S. stock market has returned approximately 10% annually on average, outpacing inflation, bonds, and most other asset classes. However, individual stock returns vary enormously, and understanding your actual position performance is crucial for informed decision-making.

This calculator accounts for the complete transaction cost picture, including buy and sell commissions. While many brokerages now offer commission-free trading, some transactions still incur fees, especially for international stocks, options exercises, or large block trades. Including commissions in your calculation gives you the true net return on your investment.

The calculator computes four key metrics: total cost basis (what you paid including commissions), current value (what your shares are worth now minus sell commissions), profit/loss in dollar terms, and return percentage. These metrics are essential for portfolio management, tax planning (distinguishing short-term from long-term capital gains), and performance evaluation against benchmarks.

For accurate results, use the actual purchase price (not the current price) and include all associated costs. If you purchased shares at different times and prices, consider using the Stock Average Calculator for a more comprehensive analysis of your position.

Visual Analysis

How It Works

The formulas are: Total Cost = Shares × Buy Price + Buy Commission. Current Value = Shares × Current Price - Sell Commission. Profit/Loss = Current Value - Total Cost. Return % = (Profit/Loss / Total Cost) × 100.

Understanding Your Results

A positive profit/loss indicates a gain; negative indicates a loss. Compare your return percentage against the S&P 500 return over the same period to evaluate whether your stock pick outperformed the market. For tax purposes, gains held over 1 year qualify for lower long-term capital gains tax rates in the US.

Worked Examples

Profitable Trade

Inputs

shares100
buy price50
current price75
buy commission0
sell commission0

Results

total cost5000
current value7500
profit loss2500
return pct50

100 shares bought at $50, now at $75

With Commissions

Inputs

shares500
buy price25
current price32
buy commission9.95
sell commission9.95

Results

total cost12509.95
current value15990.05
profit loss3480.1
return pct27.82

500 shares with $9.95 commissions each way

Frequently Asked Questions

Stock profit = (Current Price × Shares - Sell Commission) - (Buy Price × Shares + Buy Commission). This gives your net dollar profit or loss on the position.

Cost basis is the total amount you paid for an investment, including the purchase price and any commissions or fees. It is used to calculate capital gains or losses for tax purposes.

Yes, in most countries. In the US, short-term capital gains (held less than 1 year) are taxed as ordinary income. Long-term gains (held over 1 year) receive preferential tax rates of 0%, 15%, or 20% depending on income.

The S&P 500 averages about 10% annually. Returns above this benchmark are considered good. However, higher returns often come with higher risk. Evaluate returns relative to the risk taken.

This calculator measures price return only. For total return, add all dividends received to your current value before calculating. Total return is a more accurate measure of investment performance.

Use the Stock Average Calculator to find your average cost per share across multiple purchases. This gives a weighted average cost basis for the entire position.

Commissions reduce your effective return. On small positions, commissions can significantly impact performance. For example, $10 commission on a $100 trade is a 10% cost, but on a $10,000 trade it is only 0.1%.

Unrealized gains are paper profits on positions you still hold. Realized gains occur when you sell. Only realized gains are taxable. This calculator shows unrealized gains/losses unless you have actually sold.

After a stock split, your number of shares increases and the price per share decreases proportionally. Your total value remains the same. Adjust your buy price and share count accordingly.

A stop-loss is an automatic sell order triggered when a stock drops to a specified price, limiting your potential loss. While not part of this calculation, stop-losses are an important risk management tool.

Sources & Methodology

NYSE — Market data; Investopedia — Stock profit calculation; IRS — Capital gains tax rules; SEC — Investor education
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Investment Calculator

Investment & Retirement Calculators

Compound Interest Calculator

Investment & Retirement Calculators

Simple Interest Calculator

Investment & Retirement Calculators

CAGR Calculator

Investment & Retirement Calculators

ROI Calculator

Investment & Retirement Calculators

Stock Average Calculator

Investment & Retirement Calculators