How to use this calculator
- Enter Shares。
- Enter Cost per share ($)。
- Enter Current price ($)。
Leave any field blank and the calculator solves for it from the remaining values — every quantity is reversible.
The calculator then returns: Unrealized gain。
What is it
Unrealized Gain or Loss — Enter Shares, Cost per share and Current price to get Unrealized gain — or leave any field blank to solve for it. Investment calculators quantify the time value of money, returns and risk, turning a vague sense of "this will do well" into comparable numbers. The core question it answers is: Unrealized gain. With Shares = 200, Cost per share = 45 $ and Current price = 58 $, Unrealized gain is 2,600 $.
Formula
| Variable | Inputs | Unit |
|---|---|---|
shares | Shares | |
costBasis | Cost per share | $ |
currentPrice | Current price | $ |
gain | Unrealized gain | $ |
shares * (currentPrice - costBasis)The relationship is solved in every direction, so any one unknown field can be derived.
Worked example
Using the default inputs:
- Shares = 200
- Cost per share = 45 $
- Current price = 58 $
Formula used: shares * (currentPrice - costBasis)
Answer:
- Unrealized gain = 2,600 $
Example 1 (default inputs):Suppose Shares = 200, Cost per share = 45 $, Current price = 58 $; then giving Unrealized gain = 2,600 $.
Example 2 (one input changed):If you change Shares to 300,giving Unrealized gain = 3,900 $.
Additional information
Assumptions and limitations
- These models assume a constant rate, periodic compounding, and no taxes or trading costs. Real return sequences, fees and taxes materially change outcomes — treat results as planning guidance, not a promise.
- Good for: getting a directionally correct order of magnitude quickly, or comparing two scenarios.
- Not good for: using it as the sole basis for a decision, or for official filings, contract pricing and legal documents — those need a full model with your actual clauses and local rules.