The net investment gain formula (with plain-English meaning)
The phrase âinvestment gainâ is often used in a casual way: people look at a chart and say, âMy account is up $4,000.â But that raw increase can be misleading because it mixes two different things: the marketâs impact on your money and the extra cash you added along the way. Thatâs why ânet investment gainâ is best defined as a cashâflow equation: it compares everything that went into the investment versus everything that came out of it (including what is still invested at the end).
This calculator uses a simple framework that works for brokerage accounts, retirement accounts (401(k), IRA), and even many alternative portfolios. Itâs also the easiest way to tell the story of your results without needing a spreadsheet or the exact date of every deposit.
Step 1 â Total invested. Think of this as âhow much of my money was put to work?â
- Total Invested = Starting Value (SV) + Contributions (C)
If you started with $10,000 and added $3,000, then you had $13,000 of your own money invested in total. (This calculator treats contributions as âprincipalâ because they were your decision and not profit.)
Step 2 â Total returned. This is everything you got back from the investment.
- Total Returned = Ending Value (EV) + Withdrawals (W) + Cash Distributions (D)
Including withdrawals is important. If you withdrew $2,000 and your ending value is $15,800, your total returned isnât just $15,800 â itâs $17,800 (because you already pulled out $2,000 earlier). Without counting withdrawals, you can accidentally understate your profit.
Step 3 â Costs (optional). Some people want âprofit before costs,â and others want âprofit I kept.â
- If you pick Deduct costs: Costs = Fees (F) + Taxes (T)
- If you pick Already reflected: Costs = 0 (to avoid doubleâcounting)
Fees and taxes are tricky because sometimes they are removed directly from the account value, which means your ending value already includes the effect. If thatâs your situation, you should choose âalready reflectsâ so the calculator doesnât subtract the same costs twice.
Step 4 â Net gain. This is the âtrue profitâ number.
- Net Investment Gain = (EV + W + D) â (SV + C) â Costs
If the result is positive, you had a net gain (profit). If itâs negative, you had a net loss. Either way, itâs a clean answer that accounts for money in and out.
Net return %. Percent return is useful because it lets you compare different investment sizes.
- Net Return % = Net Gain á (SV + C) à 100
This percentage is practical: it says ârelative to everything I put in, what percentage did I make?â Itâs not a perfect performance measure when deposits happen throughout the period, but it is excellent for realâlife planning.
CAGR (annualized return). People often want an annual number even when the time period isnât exactly one year.
For a oneâtime investment with no deposits, CAGR is exact: CAGR = (Final / Initial)^(1/Years) â 1. With contributions/withdrawals, the exact answer requires IRR/XIRR (cashâflow timing). This calculator instead uses a reasonable approximation: it estimates a growth multiple based on total invested vs effective returned, then annualizes it.
- Growth Multiple â (Total Returned â Costs) á Total Invested
- Approx. CAGR â (Growth Multiple)^(1/Years) â 1
Bottom line: net gain is the best âhow much did I make?â number, while CAGR here is a helpful headline for comparison. If you need brokerâgrade performance reporting for heavy cashâflow timing, use an IRR/XIRR calculator.