Use this stock profit calculator to calculate calculate stock profit after buy price, sell price, shares, commissions, and taxes.
stock profitsharescommissioncapital gain
Calculator
Calculate instantly
Calculator Inputs
Choose what you want to calculate, enter realistic values, adjust units where shown, and use the scenario section for repeated-use planning.
Input and Formula Breakdown
This calculator applies the formula Profit = (sell - buy) x shares - fees - tax. Enter each value with the matching unit, and AZCalculate updates the result instantly.
Buy price per share
45 $
Sell price per share
58 $
Shares
100
Total fees
20 $
Tax rate
15 %
Gross profit
$1,300.00
Net profit after fee and tax
$1,088.00
Return
28.44%
Scenario and Comparison
Current
$1,300.00
Projected
15,600
Adjusted
1,430
Visual Comparison
Current result1,300
Projected usage15,600
Comparison scenario1,430
Sign in to save this calculation and access it later.
This calculator is informational and should be verified before financial, health, legal, engineering, laboratory, or safety-critical decisions.
High risk contextDifficulty: advancedConfidence estimate: 87/100Reviewed 2026-05-18Reviewed by: Finance content reviewerCalculator vuces-2.1 / Formula vformula-1.04 sources listed
Formula and Explanation
Profit = (sell - buy) x shares - fees - tax
This calculator applies the formula Profit = (sell - buy) x shares - fees - tax. Enter each value with the matching unit, and AZCalculate updates the result instantly.
Variable descriptions
buy($)
Buy price per share: Buy price per share measured in $, entered as a known value.
sell($)
Sell price per share: Sell price per share measured in $, entered as a known value.
shares
Shares: Shares, entered as a known value.
fees($)
Total fees: Total fees measured in $, entered as a known value.
taxRate(%)
Tax rate: Tax rate measured in %, entered as a known value.
Formula Notes
Use consistent units for values that are multiplied, divided, or compared.
Results may be rounded for readability, while the calculator keeps greater precision internally.
Rates, fees, taxes, and lender conventions can change the real-world total.
Common uses
•Estimate trade profit
•Compare exits
•Include fees and tax
Assumptions
What this calculation assumes
Currency, rate period, and payment period are assumed to match.
Fees, taxes, insurance, and penalties are included only when the calculator asks for them.
Inputs are assumed to describe the same scenario and use compatible units.
Results may be rounded for readability.
Avoid mistakes
Quick checks before you rely on the result
Using an annual rate where a monthly rate is required.
Ignoring fees, taxes, insurance, or lender-specific rules.
Mixing units, periods, currencies, or measurement systems without converting first.
Rounding intermediate values too early.
Step-by-Step Explanation
Follow the reasoning, not only the final number.
1
Set up the calculation
Enter the known values in the calculator fields.
Starting with clearly defined values and units prevents the most common calculation errors.
2
Work through step 2
Keep the units consistent with the labels shown beside each input.
This step transforms the known values into the form required by the formula.
3
Work through step 3
Apply the formula: Profit = (sell - buy) x shares - fees - tax.
This step transforms the known values into the form required by the formula.
4
Interpret the result
Review the primary result and supporting values.
Compare the result with your real-world goal, such as estimate trade profit.
Worked example
Practical stock profit calculator example
Known values
Buy price per share: 45 $
Sell price per share: 58 $
Shares: 100
Total fees: 20 $
Tax rate: 15 %
Calculation
1. Start with the known values shown for this stock profit calculator scenario.
2. Substitute those values into Profit = (sell - buy) x shares - fees - tax.
3. Evaluate the expression and keep the requested unit and rounding.
Result and meaning
Gross profit: $1,300; Net profit after fee and tax: $1,088; Return: 28.44%
Calculator guide
About this Stock Profit Calculator
Calculate stock profit after buy price, sell price, shares, commissions, and taxes. This page includes an interactive calculator, concise formula notes, worked examples, FAQs, related calculators, and practical guidance you can revisit whenever needed.
We work hard to keep every calculator accurate and useful. If you notice a calculation error, missing option, or unclear explanation, please let us know so we can review and correct it promptly.