Smart Deals - promotions, discount codes and sales

Stock Profit Calculator

Fast, accurate and free online stock profit calculator tool running directly in your browser.

Secure (SSL)
Client-Side Processing
100% Free
Instructions
  • 1
    Enter data
    Enter content, paste text or load a file from disk.
  • 2
    Click the button
    The tool will immediately process your data in the browser.
  • 3
    Get the result
    Copy the finished text or save the file to your device.
function runTool() {
  return "Result ready in 0.1s";
}

Stock Calculator

Calculate profit, average price or adjust position size.


#1
#2
?

Complete the form on the left and click "Calculate" to see the analysis.

Rate this tool:

5.0 / 5 · 1 rating

Related tools

Other tools you may find useful

Stock Calculator – Calculate Profit, Loss and Position Size

The Stock Calculator is a comprehensive investment tool that allows you to analyze the results of stock exchange transactions. Enter the purchase price, sale price, number of shares, commissions and tax, and the application will automatically calculate your gross profit, net profit, ROI and break-even price. Additionally, modes for calculating the average rate and risk management when determining the position size are available.

finance investing stock market shares

Calculator modes

The calculator supports three main modes:

  • PL– profit and loss (Profit/Loss)
  • AVG– average purchase price (Average Price)
  • SIZE– position size based on risk (Position Sizing)

Each mode has different sets of fields and calculation functions, but together they form a complete set for analyzing and planning stock market investments.

Formulas and theory

Profit and loss (PL)

When calculating the profit from an investment in shares, both commission costs and capital gains tax should be taken into account.

Gross profit = (Sale price - Purchase price) × Number of shares
Net profit = Gross profit × (1 - Tax / 100) - (Purchase commission + Sales commission)
ROI (%) = (Net profit / Investment cost) × 100
Break-even price = (Purchase price × Number of shares + Commissions) / Number shares

Average cost basis (AVG)

If you buy shares at different prices, the average cost basis will help determine your actual cost per unit.

Average price = (Σ (Price × Quantity)) / Σ Quantity

Position size (SIZE)

In risk management mode, you calculate how many shares you can buy without exceeding a certain percentage of capital risk.

Risk per trade = (Entry - Stop Loss)
Position size = (Capital × (Risk % / 100)) / Risk per share

Application examples

Example 1 - Calculation of profit and ROI

An investor bought 100 shares at PLN 100 and sold them for PLN 120. Total commissions PLN 20, tax 19%.

  • Gross profit = (120 - 100) × 100 = PLN 2,000
  • Tax = 2,000 × 0.19 = PLN 380
  • Net profit = 2,000 - 380 - 20 = PLN 1,600
  • ROI = 1,600 / 10000 × 100% = 16%

Example 2 – Average purchase cost

An investor bought 50 shares for PLN 100 and another 50 for PLN 90. Average purchase price:

AVG = (50×100 + 50×90) / (50+50) = PLN 95

This means that each share in the portfolio cost on average PLN 95.

Example 3 – Risk management

Capital: PLN 50,000, risk 1%, entry PLN 100, stop loss PLN 95.

Risk = 50,000 × 0.01 = PLN 500
Risk per share = 100 - 95 = PLN 5
Number of shares = 500 / 5 = 100 pieces

The optimal position size is 100 shares, which allows you to keep the risk at 1% capital.

Auxiliary tables

Mode Description Most common use
PL Profit/Loss Investment profitability analysis
AVG Average price Determination of the real unit cost
SIZE Position size Capital risk management

Investment advice

  • Always take into account commissions and taxes - they actually reduce your profit.
  • Do not risk more than 1-2% of your capital in a single trade.
  • Calculate the average purchase price after each share purchase transaction.
  • Set a stop loss and stick to it consistently.
  • In the long run, regularity and risk control are more important than individual profits.

FAQ

How to calculate net profit from shares?

Tax and commissions must be subtracted from gross profit. The calculator does this automatically.

How to calculate break-even price?

This is the price at which, after taking into account all costs, you incur neither profit nor loss.

What is ROI?

ROI (Return on Investment) is an indicator showing what percentage of profit your investment brings in relation to the costs incurred.

How to calculate the average cost of purchasing shares?

Average price = sum (price × quantity) / total number of shares.

How to select the position size?

Depending on your risk. With a risk of 1% and capital of PLN 50,000, the maximum loss should not exceed PLN 500.

Summary

The Stock Calculator is a comprehensive investment planning tool. It enables accurate calculations of profits, losses, average prices and position sizes taking into account risk. Thanks to it, the investor can make decisions based on data, not emotions. It is an ideal tool for both beginners and advanced stock investors.

Launch the stock calculator
Install Webp.pl Have the tools in your own pocket!