Investing maths is usually less about difficult formulas than about choosing the right starting value, accounting for every cash flow once, and stating what the answer means. A percentage can look precise while hiding a distribution, a fee, inflation, unequal portfolio weights, or the order in which gains and losses occurred.
This guide gives you four fully worked investing problems. Each one states its assumptions, shows the arithmetic, identifies a tempting shortcut, and explains the limits of the result. The examples are hypothetical and educational. They do not predict a return or recommend an investment, account, product, allocation, contribution, withdrawal, or risk level.
Keep a calculator and paper nearby. Try each problem before opening its solution, then use the Investing Math Basics Quiz for a ten-question knowledge check.
A five-step method for investing calculations
Use the same process for every problem:
- Name the question. Are you measuring a dollar change, percentage return, purchasing-power change, weighted result, or recovery requirement?
- Set one period. Returns and inflation rates must cover matching dates.
- List every relevant cash flow. Mark contributions, withdrawals, distributions, fees, and taxes as included, excluded, or already reflected in a balance.
- Calculate with decimals. Convert 7% to 0.07 when multiplying, but keep percentage points distinct from percent changes.
- Interpret and limit the answer. State what the number describes and what the simplified example leaves out.
This discipline matters more than memorising many formulas.
Worked problem 1: total return with a distribution and fee
Problem
An account begins the year at $5,000. It ends at $5,350 after a $50 fee has already been deducted inside the account. During the year, the investment also pays a $100 cash distribution that is taken out rather than reinvested. What is the investor's total return after that stated fee and before taxes? What would the simplified return have been before the fee?
Assumptions
- The beginning and ending values cover the same investment and one full year.
- There are no contributions, other withdrawals, taxes, or other fees.
- The $100 distribution is not included in the $5,350 ending value.
- The $50 fee is already reflected in the ending value, so it must not be subtracted twice.
Solution
Total return counts both the change in value and cash received:
Total return = (ending value − beginning value + cash distribution) ÷ beginning value
Insert the numbers:
($5,350 − $5,000 + $100) ÷ $5,000 = $450 ÷ $5,000 = 0.09 = 9%
The after-fee total return is 9%. In dollars, the investor gained $350 inside the account and received $100 outside it, for a total gain of $450.
To reconstruct this simplified example before the stated fee, add the fee back once: $5,350 + $50 = $5,400. Then calculate:
($5,400 − $5,000 + $100) ÷ $5,000 = $500 ÷ $5,000 = 10%
In this controlled example, the $50 fee reduced the one-year return from 10% to 9%, a difference of 1 percentage point. That is also $50 ÷ $5,000. A one-percentage-point difference is not the same phrase as a one-percent reduction.
The tempting wrong shortcut
Using only ($5,350 − $5,000) ÷ $5,000 gives 7%. That is a price-only change and misses the $100 cash distribution. Subtracting the $50 again would also be wrong because the problem says the ending value is already after the fee.
What the answer means—and does not mean
The 9% result measures this simplified holding-period return after one specified fee. Real statements may include multiple purchases, sales, distributions, deposits, withdrawals, taxes, and fees assessed at different times. Those cash flows can require time-weighted or money-weighted performance methods. The SEC's Investor.gov fee guidance also stresses that fees reduce the amount left to earn future returns, so their long-term effect is not captured by this single-year subtraction.
Worked problem 2: exact return after inflation
Problem
A hypothetical $10,000 amount earns a 7% nominal return during a period when the measured price level rises 3%. What is the approximate real return, the exact real return, and the ending value expressed in the period's starting dollars?
Assumptions
- The return and inflation rate cover exactly the same period.
- The $10,000 has no additions, withdrawals, fees, or taxes.
- The 3% price-level change is the selected inflation measure, not a claim about one person's spending.
Solution
First find the nominal ending value:
$10,000 × 1.07 = $10,700
The familiar shortcut subtracts inflation from nominal return:
7% − 3% = approximately 4% real return
That is useful for a quick estimate, but the exact calculation compares growth factors:
Exact real return = (1 + nominal rate) ÷ (1 + inflation rate) − 1
1.07 ÷ 1.03 − 1 = 0.03883495, or about 3.88%
You can verify the same answer in dollars by converting the nominal ending amount into starting-period purchasing power:
$10,700 ÷ 1.03 = $10,388.35
That is $388.35 more purchasing power than the starting $10,000, or 3.88%.
The tempting wrong shortcut
Calling 4% the exact result ignores that both rates apply multiplicatively. Here the shortcut differs from the exact answer by about 0.12 percentage points, or $11.65 per $10,000. The difference can grow when rates are larger.
What the answer means—and does not mean
The Bureau of Labor Statistics explains that a price index can be used to convert current dollars into constant dollars. This example applies that idea to one period. A broad inflation index measures an average basket; your own rent, food, medical, education, or transport costs can move differently. The result also says nothing about whether the investment's risk was acceptable or whether 7% will occur again.
Worked problem 3: a weighted three-part portfolio
Problem
A $20,000 hypothetical portfolio begins with three components:
- 50%, or $10,000, returns +12%.
- 30%, or $6,000, returns −4%.
- 20%, or $4,000, returns +3%.
What is the portfolio's return before fees and taxes?
Assumptions
- The beginning weights apply for the full measured period.
- There are no contributions, withdrawals, distributions, fees, taxes, or rebalancing during the period.
- Each component's stated return already includes its change in value for that period.
Solution using weights
Multiply each return by its beginning weight, then add the contributions:
- 0.50 × 12% = 6.0%
- 0.30 × −4% = −1.2%
- 0.20 × 3% = 0.6%
Portfolio return = 6.0% − 1.2% + 0.6% = 5.4%
Now confirm it in dollars:
- First component: $10,000 × 12% = +$1,200.
- Second component: $6,000 × −4% = −$240.
- Third component: $4,000 × 3% = +$120.
Total change is $1,200 − $240 + $120 = $1,080. The ending value is $21,080, and $1,080 ÷ $20,000 = 5.4%. Two methods reach the same result.
The tempting wrong shortcut
The simple average of the three returns is (12% − 4% + 3%) ÷ 3 = about 3.67%. That would give every component equal influence even though the starting amounts are unequal. A simple average only works as the portfolio return when the components have equal relevant weights.
What the answer means—and does not mean
This exercise shows weighted aggregation, not proof that the portfolio is well diversified. Investor.gov describes diversification as spreading money among investments to reduce risk and notes that it cannot guarantee against loss. Proper analysis would also examine what each component holds, how their returns move together, concentration, and other risks.
Market movement also changes the weights. The ending component values are $11,200, $5,760, and $4,120, so the first component has grown from 50% to about 53.1% of the $21,080 total. That drift is arithmetic, not an instruction to rebalance or choose any particular allocation. Review the Investing Basics Quiz to separate the concepts of weighting, diversification, asset allocation, and risk.
Worked problem 4: losses, recovery, and return order
Problem
A hypothetical account starts with $1,000. Over two years it experiences one +20% return and one −20% return. First calculate the result without withdrawals. Then compare two sequences if $100 is withdrawn after year one.
Assumptions
- Returns apply once per year to the balance then in the account.
- The withdrawal occurs after the first year's return and before the second year's return.
- There are no other cash flows, fees, or taxes.
Solution without a withdrawal
If the gain comes first:
$1,000 × 1.20 = $1,200; then $1,200 × 0.80 = $960
If the loss comes first:
$1,000 × 0.80 = $800; then $800 × 1.20 = $960
Without cash flows, multiplication gives the same $960 either way because 1.20 × 0.80 = 0.96. The cumulative return is −4%, not zero.
After a 20% loss, $1,000 becomes $800. Returning to $1,000 requires a $200 gain on the smaller $800 base:
$200 ÷ $800 = 25%
A 20% loss therefore requires a 25% gain to recover.
Solution with a $100 withdrawal
Sequence A, gain then loss:
$1,000 × 1.20 = $1,200; $1,200 − $100 = $1,100; $1,100 × 0.80 = $880
Sequence B, loss then gain:
$1,000 × 0.80 = $800; $800 − $100 = $700; $700 × 1.20 = $840
The same two annual returns and the same withdrawal produce ending balances of $880 and $840—a $40 difference—because the withdrawal leaves different amounts exposed to the second return. This is a small illustration of sequence-of-returns risk when cash flows occur.
The tempting wrong shortcut
Adding +20% and −20% to get zero ignores compounding on changing bases. Applying both returns to the original $1,000 also ignores that year two starts from year one's ending balance.
What the answer means—and does not mean
This example demonstrates sensitivity to return order and withdrawal timing. It does not estimate a safe withdrawal, forecast volatility, prescribe a portfolio, or measure every real risk. Actual decisions can depend on essential spending, time horizon, taxes, fees, product terms, longevity, and the ability to change withdrawals. Investor.gov's risk overview emphasises that investments involve uncertainty and possible financial loss.
Check your work before trusting the result
For any investing maths question, write a one-line audit:
- Period: Do all rates and values use matching dates?
- Base: Which value is in the denominator or receives the percentage?
- Cash flows: Were distributions, contributions, and withdrawals counted exactly once?
- Costs: Is the result before or after fees and taxes?
- Inflation: Is the figure nominal or expressed in constant purchasing-power dollars?
- Weights: Do portfolio weights sum to 100%, and are they beginning or ending weights?
- Limits: Which real-world facts are absent?
A calculator can check arithmetic, but it cannot repair unclear assumptions. If you use a projected rate, label it as a scenario rather than a promise. If you use a broad inflation measure, distinguish it from personal spending. If a calculation could affect real money, verify current disclosures and consider qualified advice that can account for your circumstances.
Practise in a useful order
First, redo all four problems with the solutions covered. Next, change one input at a time—such as the distribution, inflation rate, portfolio weight, or withdrawal timing—and predict the direction of the answer before calculating. Then take the Investing Math Basics Quiz. For the broader concepts behind the numbers, use A Beginner's Guide to Investing and the finance learning map.
Frequently asked questions
Why do equal percentage gains and losses not cancel? They apply to different bases. A 20% loss turns $1,000 into $800, while a 20% gain on $800 adds only $160. Recovering the lost $200 requires 25% of the new $800 base.
Should I subtract inflation from return or use the exact formula? Subtraction is a quick approximation when the rates are modest and cover the same period. Use (1 + nominal rate) ÷ (1 + inflation rate) − 1 when an exact purchasing-power return matters, and state which inflation measure you used.
Does a weighted portfolio calculation prove diversification? No. It combines component returns according to weights. Diversification also depends on the underlying exposures, concentration, and how holdings behave together, and it cannot guarantee against loss.
Can these examples tell me what to invest in or how much risk to take? No. They teach arithmetic using hypothetical inputs. They do not assess goals, time horizon, loss capacity, taxes, product terms, jurisdiction, or personal circumstances and do not recommend any action.
The main lesson
A correct answer is a calculation plus its assumptions. Total return must account for cash received, real return must compare growth with prices, portfolio return must respect weights, and gains and losses act on changing balances. When the assumptions change, recalculate—do not carry a neat percentage into a different decision.
Educational disclaimer: This guide provides general mathematical and financial education only. It does not predict performance or provide financial, investment, retirement, tax, accounting, or legal advice. It does not recommend a security, product, account, allocation, contribution, withdrawal, or strategy. All investments involve risk, including possible loss of principal.
Put this guide to work
Recommended next step Test the four calculations Use ten beginner questions to check returns, inflation, fees, weights, compounding, and contributions with answer explanations.Sources and further reading
- Annual Return U.S. Securities and Exchange Commission, Investor.gov · Accessed August 12, 2026
- How Fees and Expenses Affect Your Investment Portfolio U.S. Securities and Exchange Commission, Investor.gov · Accessed August 12, 2026
- Purchasing power and constant dollars U.S. Bureau of Labor Statistics · Accessed August 12, 2026
- Asset Allocation and Diversification U.S. Securities and Exchange Commission, Investor.gov · Accessed August 12, 2026
- What is Risk? U.S. Securities and Exchange Commission, Investor.gov · Accessed August 12, 2026