Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Recovery planner

Type your loss once. See the gain needed, how long it may take, and what buying more would do.

Summary

  1. 1. Gain needed

    You need a 66.7% gain to get back to even.

    Open the full loss recovery calculator →
  2. 2. Time to recover

    • At 4.0% a year: 13.0 years
    • At 8.0% a year: 6.6 years
    • At 12.0% a year: 4.5 years
    Open the full time-to-recover calculator →
  3. 3. If you buy more

    Buying 50 more at 300 makes your average 433.33. Break-even needs a 44.4% rise from today.

    Open the full averaging-down calculator →

This tool shows math, not advice.

What the recovery planner does

The recovery planner answers three questions from one typed number: how far a holding has fallen. The gain needed to get back to even comes first, because a fall and the rise that undoes it are not the same size — the rise is measured on the smaller amount left after the fall. The second step puts years on the recovery: it converts the gain needed into years at whatever yearly returns are typed alongside the loss. The third step is optional: it works out what buying more at today's price does to the average price paid and to the rise needed from here.

Nothing typed into the planner leaves the browser. The three steps run as plain arithmetic in the page, the numbers are not sent to the site or stored anywhere beyond this browser, and no account or email is involved. Each step links to the full calculator behind it — loss recovery, time to recover and averaging down — where the same arithmetic runs with more room to explore.

The three pieces of arithmetic

The gain needed is the loss divided by what remains: gain = loss / (1 - loss), with the loss typed as a fraction, so a 40% fall is 0.4 and the gain is 0.4 / 0.6, about 66.7%. The reason the gain is larger than the loss is the base each one is measured on: the fall is measured on the starting amount, the rise on the smaller amount that is left, so each percent of gain recovers less than a percent of the original. The gap widens as the fall deepens: a 50% fall needs 100%, and a 90% fall needs 900%.

The years figure converts that gain into time at an assumed yearly return: years = ln(1 / (1 - loss)) / ln(1 + r), where r is the yearly return typed as a fraction and ln is the natural logarithm. In words: the amount left has to multiply by 1 / (1 - loss) to be whole again, and each year at return r multiplies it by 1 + r, so the answer is how many of those yearly multiplications compound to the required one. When r is 0 or negative the multiplication never grows past 1, so there is no answer and the planner prints never for that rate rather than a number. The figure assumes the same return repeats every year; it is a property of the arithmetic, not a forecast.

The averaging step uses the plain definition of an average price: new average = total cost / total shares. The total cost is what was paid for the shares already held plus what buying more adds, and the total shares is the two counts added together. Buying at a price below the average pulls the average toward that price, which lowers the rise needed to get back to even. The step changes nothing else about the holding: the money spent is real money added to the position, at today's price, in the same market the price came from.

A worked case

One loss, run through all three steps, with every figure produced by the site's own functions. The loss typed is 40% — a holding falls 40% and is worth less by that share of its starting value. For the averaging step, the holding is 100 shares bought at an average price of 50, and the price today is 30.

A worked case
Fall assumed 40%
Gain needed to get back to even 66.7%
Years to recover at 5% a year 10.47
Years to recover at 8% a year 6.64
Years to recover at 12% a year 4.51
Shares held at an average of 50 100
Price today 30
Shares bought at 30 100
Money added by the purchase 3,000
Total cost after buying 8,000
Total shares after buying 200
Average price after buying 40
Rise from 30 that reaches the new average 33.3%

The rows are arithmetic, not advice. The gain step says a 40% fall needs a 66.7% rise to get back to even, because the rise is measured on the smaller amount left after the fall. The time step says the same gain compounds in 10.47 years at 5% a year, 6.64 years at 8% and 4.51 years at 12% — figures that hold only while the same return repeats every year. The averaging step says buying 100 shares at 30 adds 3,000 to the position, taking it to 8,000 over 200 shares, and moves the average price from 50 to 40; the rise needed from 30 then falls from 66.7% to 33.3%. The money added is not free: it raises the size of the position, and with it the loss if the price keeps falling.

What the planner leaves out

The planner models one thing precisely — the relation between a fall, a gain, time and an average price — and leaves out everything that varies by account and by place. It charges no fees, spreads or trading costs: buying more in the third step costs nothing on the page, where a real purchase carries charges of its own. It applies no tax, because gains and losses are taxed differently in different hands and different places. It counts no dividends or income the holding might produce, which would change both the size of the fall and the pace of the recovery.

The time step is the largest simplification. It assumes the same yearly return repeats every year until the gain is reached, which real markets do not do: returns arrive unevenly, and a path with the same average return can take far longer or far shorter than the single figure says. The figure is the length of a smooth path at that return — a yardstick for comparing rates with each other — not a schedule of what will happen. The planner is arithmetic on typed numbers: it holds no positions, takes no account of anything not typed, and states no view on what anyone owns or does.

The calculators behind each step

  • Loss recovery

    The loss recovery calculator runs the first step with more room: the fall can be typed as a percentage or as a before and after value, and the money figures sit beside the fractions — what an amount becomes after the fall, and how much has to be earned back to be whole.

  • Time to recover

    The time-to-recover calculator runs the second step over up to eight yearly returns at once, prints the years for each in a table, and marks the rates that never recover, so the spread between a low return and a high one is visible in a single view.

  • Averaging down

    The averaging-down calculator runs the third step in both directions: given the shares bought, it gives the new average price; given an average price aimed for, it works out how many shares at the current price reach it, rounded up to whole shares.

Questions about the planner

Why does a 40% fall take more than a 40% gain to undo?

Because the two are measured on different amounts. The fall is measured on the starting value; the gain is measured on the smaller value left after the fall, so each percent of gain recovers less than a percent of the original. The arithmetic is gain = loss / (1 - loss): a 40% fall needs 0.4 / 0.6, about 66.7%. The deeper the fall, the wider the gap — 50% needs 100%, and 90% needs 900%.

What does the planner mean when it prints never?

That no number of years closes the gap at that rate. The time step multiplies the amount left by 1 + r each year; when r is 0 or negative, that multiplication never exceeds 1, the gain needed never arrives, and there is no number of years to print. The page says never for that rate and moves on to the next one.

What does buying more actually change?

Two numbers, in opposite directions. The average price paid falls toward today's price — in the worked case from 50 to 40 — and the rise needed to get back to even falls with it, from 66.7% to 33.3%. At the same time the money in the position rises by everything paid: 3,000 in the case above. The step states both effects as arithmetic; it is not a view on whether the price rises, falls or stays.

Does the planner keep or send my numbers?

No. The three steps run in the page as plain arithmetic on the numbers typed, nothing is sent to the site or anywhere else, and no account is involved. Closing the tab leaves nothing behind on any server; the numbers exist only where they were typed.

Which returns go in the time step?

Whatever yearly returns the reader wants to try, typed as plain percentages — the planner accepts up to eight and answers each one separately. They are assumptions typed for comparison, not observations about any market, and the years figure for each holds only while that same return repeats every year. A 0% or negative entry prints never rather than a figure.