Stock Calculator

Calculate your stock investment profit or loss, total return percentage, and cost basis. Enter buy and sell prices along with the number of shares to see your gains including commission costs.

Stock Profit / Loss

Stock Return Formulas

Cost Basis = (Buy Price × Shares) + Buy Commission Proceeds = (Sell Price × Shares) − Sell Commission Net Profit = Proceeds − Cost Basis Total Return % = (Net Profit / Cost Basis) × 100 Break-Even Price = (Cost Basis + Sell Commission) / Shares

Frequently Asked Questions

What is cost basis?+
Cost basis is what you paid for your investment, including commissions and fees. It's used to calculate capital gains taxes when you sell. If you've bought shares at different prices over time (averaging in), your cost basis is the weighted average purchase price times total shares.
How are stock gains taxed?+
In the US, short-term gains (held <1 year) are taxed as ordinary income. Long-term gains (held >1 year) are taxed at 0%, 15%, or 20% depending on income level. Always consult a tax professional for advice specific to your situation.

About the Stock Calculator

This free stock calculator helps you get accurate results instantly without needing to work through the math manually. Whether you need a quick estimate or a precise figure, having a reliable tool on hand saves time and reduces errors compared to manual calculation.

How to Use This Calculator

  1. Enter your values in the input fields above. Each field is labeled to guide you.
  2. Double-check your inputs — results are only as accurate as the numbers you enter.
  3. Click the Calculate button to see your result instantly.
  4. Use the result for your planning, budgeting, or decision-making.

Why Accurate Calculations Matter

Small errors in math calculations can compound into significant problems. A 1% miscalculation in a budget or measurement can translate to hundreds or thousands of dollars in wasted resources, or result in having to redo work entirely. This calculator uses the standard formulas and methods to give you reliable results you can trust.

Tips for Getting the Best Results

Frequently Asked Questions

Is this calculator free? Yes — completely free with no account, login, or payment required. Use it as many times as you need.

How accurate are the results? This calculator uses the standard formulas for stock calculations. Results are accurate for typical use cases. For specialized or high-stakes applications, consult a professional.

Does it work on mobile? Yes. This calculator is fully responsive and works on smartphones, tablets, and desktops.