Markets & Investing
Stock gain or loss after fees
Use this stock gain or loss after fees calculator to compare an entered purchase and sale or valuation price, including explicit transaction fees.
Your inputs
Complete only the fields for your selected method. Use one consistent job or reporting period. Zero means intentionally zero, not unknown. Missing costs and market rates are not added automatically. Currency selection labels amounts; it does not convert exchange rates.
How this calculation works
basis = shares × purchase price + purchase fees; net gain = shares × sale price - sale fees - basis
Long position only; zero ending value is allowed. If a valuation rather than an executed sale is entered, gain/loss is unrealized. No dividends, reinvestment, splits, tax-lot allocation or tax basis rules are inferred. Educational arithmetic from entered figures, not an investment recommendation, valuation opinion, forecast or guarantee. Taxes, inflation and foreign-exchange changes are excluded unless explicitly entered. Use one currency throughout; currency selection only changes labels.
What information do I need?
Use records for the same job, equipment or accounting period. Only the fields for your selected entry method are required. An unknown amount is not zero.
Input definitions and where to find them
- Number of shares (shares): Use matching records or an explicitly identified assumption for number of shares. Unknown is not the same as zero.
- Purchase price per share (selected currency): Use matching records or an explicitly identified assumption for purchase price per share. Unknown is not the same as zero.
- Sale or valuation price per share (selected currency): Use matching records or an explicitly identified assumption for sale or valuation price per share. Unknown is not the same as zero.
- Total purchase fees (selected currency): Use matching records or an explicitly identified assumption for total purchase fees. Unknown is not the same as zero.
- Total sale fees (selected currency): Use matching records or an explicitly identified assumption for total sale fees. Unknown is not the same as zero.
Use the Where to find this value controls beside the inputs for available work-it-out helpers. Estimates remain your assumptions; a helper does not verify the source figures.
Worked example
Example amounts use US dollars (USD).
Example answer: Net gain or loss is $490.00 for the illustrative inputs below.
Example inputs
- Number of shares: 100.00 shares
- Purchase price per share: $20.00
- Sale or valuation price per share: $25.00
- Total purchase fees: $5.00
- Total sale fees: $5.00
- Net gain or loss
- $490.00
- Return on acquisition cost
- 24.4389 %
- All-in acquisition cost
- $2,005.00
- Net sale or valuation proceeds
- $2,495.00
These illustrative values are not recommended rates or industry averages. Replace every example input with your own figures.
Use the result well
Use this stock gain or loss after fees calculator to compare an entered purchase and sale or valuation price, including explicit transaction fees.
Keep inputs on the same scope and time basis. Calculations retain precision internally; displayed values generally round to two decimal places, with extra precision for very small values and whole-unit rounding where required. Economic comparisons describe your supplied assumptions and do not guarantee future results.
This tool provides business arithmetic. It does not approve engineering designs, establish legal or tax treatment, select equipment or certify safe operating conditions.