investment
Average Return Calculator
Estimate annualized return from account cash flows or from several holding-period returns.
investment calculator
The IRR Calculator solves the annual rate that makes the entered signed cash-flow timeline have a net present value near zero. It supports a fixed recurring cash-flow mode for one starting investment, recurring deposits or withdrawals, and an ending balance, plus an irregular annual cash-flow mode for a time-zero investment and year-end cash flows.
Your scenario
Working scenario
Not saved yet
Saved scenarios
Save this result, then use saved scenarios to switch between assumptions.
Use this calculator when cash-flow timing matters and a simple start-to-end ROI is too limited. Use fixed recurring cash-flow mode for one repeated deposit or withdrawal pattern plus an ending balance. Use irregular annual cash-flow mode for project-style year-end cash flows. Use ROI for a simpler amount-invested and amount-returned comparison, Average Return for period returns or account cash-flow weighting, Payback Period for recovery timing, and Investment for fixed-return contribution projections.
The calculator builds a signed timeline where outflows are negative and inflows are positive. Fixed mode converts Holding years plus Holding months divided by 12 into total holding years, maps the selected frequency to periods per year, rounds the recurring period count, records the initial investment at time zero, records deposits as recurring outflows or withdrawals as recurring inflows at the selected beginning or end timing, and records ending balance at the holding date. Irregular mode records Irregular initial investment at time zero and each non-zero annual cash-flow field at the end of that year. The app then searches annual rates from -99.99 percent to 1000 percent for the first NPV sign change, bisects that bracket, and reports IRR, NPV at IRR, total cash in, total cash out, net cash flow, holding years used, and cash-flow count.
This formula page covers the app's IRR Calculator: a signed cash-flow model that solves for the annual discount rate where net present value is zero. The calculator supports a fixed recurring cash-flow mode and an irregular annual cash-flow mode. It reports IRR, NPV at the solved IRR, total cash in, total cash out, net cash flow, holding years used, and cash-flow count. It does not model dated XIRR schedules, MIRR, taxes, inflation, project risk, or provider-specific investment performance reporting.
NPV(r) = sum(CF_i / (1 + r)^t_i); IRR = r where NPV(r) = 0; T = HY + HM / 12; N = round(T * F); NCF = TCI - TCO
Each modeled cash flow has a signed amount and a time in years. The calculator discounts those cash flows at candidate annual rates, searches for the first practical rate that makes NPV cross zero, then summarizes the cash-flow totals.| Symbol | Meaning | How this page uses it |
|---|---|---|
| CF_i | Cash flow i | A signed cash flow. Outflows such as initial investments and deposits are negative; inflows such as withdrawals and ending balance are positive. |
| t_i | Time of cash flow i | The cash-flow timing in years from time zero. Fixed mode can use fractional years; irregular mode uses year-end values. |
| r | Candidate annual rate | The annual discount rate being tested in the NPV equation. |
| IRR | Internal rate of return | The annual rate where the modeled cash-flow NPV is zero, expressed as a percentage. |
| HY | Holding years | The fixed-mode Holding years input. |
| HM | Holding months | The fixed-mode Holding months input divided by 12 when forming the timeline. |
| T | Total holding years | Holding years plus holding months divided by 12. The ending balance is placed at this time. |
| F | Periods per year | The selected fixed-mode cash-flow frequency: 1 annual, 2 semiannual, 4 quarterly, 12 monthly, 24 semimonthly, 26 biweekly, or 52 weekly periods. |
| N | Recurring period count | The rounded number of recurring cash-flow periods in fixed mode: total holding years times periods per year. |
| A | Periodic cash-flow amount | The full recurring amount entered in fixed mode before the calculator applies the deposit or withdrawal sign. |
| B | Ending balance | The fixed-mode ending balance, treated as a positive inflow at the holding date. |
| I_0 | Initial investment | The initial fixed-mode investment or irregular-mode initial investment, treated as a time-zero outflow. |
| Y_i | Annual cash flow i | The irregular-mode year i cash flow. Non-zero entries are treated as end-of-year project cash flows. |
| TCI | Total cash in | The sum of all positive cash flows. |
| TCO | Total cash out | The absolute value of the sum of all negative cash flows. |
| NCF | Net cash flow | Total cash in minus total cash out. |
| H | Holding years used | The latest cash-flow time in the modeled schedule. |
| C | Cash-flow count | The number of non-zero cash flows included in the solve. |
The default fixed-mode example starts with a $10,000 initial investment, a $15,000 ending balance after 2 years and 6 months, and $100 monthly withdrawals at the end of each month. The irregular-mode example starts with a $50,000 initial investment, then uses -$10,000 in year 1, $30,000 in year 2, and $50,000 in year 3.
IRR is driven by both amount and timing. The same total cash in and out can produce a different annual rate when cash flows arrive earlier, later, or change sign more than once.
Geographic scope: works globally. The math is currency-agnostic, so enter amounts in your own currency; local taxes, fees, and product rules are not included.
IRR is the annual discount rate at which your entered cash flows exactly break even - where net present value equals zero. It is money-weighted: both the size and the timing of each flow matter, so receiving cash earlier raises IRR even when totals match. The calculator reports NPV at the solved rate (which should be near zero), total cash in and out, and the timeline it used.
Fixed mode fits a repeating pattern: one initial investment, one recurring deposit or withdrawal at a chosen frequency and timing, and one ending balance - the default example is $10,000 invested, $100 withdrawn monthly, $15,000 back after 2.5 years. Irregular mode takes up to 50 signed annual amounts for uneven timelines like a rental property or business. Sign convention matters: money out is negative, money in positive.
ROI compares two totals and ignores time; IRR prices every flow by when it happened. A 50 percent total gain is a very different annual rate over 2 years versus 10, and interim deposits or withdrawals shift IRR while leaving simple ROI's inputs untouched. When flows change sign more than once, IRR can also have multiple solutions - the NPV-at-IRR output helps confirm the solver landed sensibly.
This calculator is an original NPV-root solver with a fixed recurring cash-flow mode and an irregular mode accepting up to 50 signed annual amounts, validated by deterministic fixtures covering sign conventions and multi-root edge cases. It is not copied from a single source.
Fixtures pin the solved rate and the near-zero NPV-at-IRR check for both modes, including sign-flip timelines. The result remains an educational estimate, not audited investment performance or a product return.
Formula version 2026.05.22-generic-irr. The version marks the calculation logic and validation fixture set used for this estimate.
Results are educational estimates, not advice. Read the full disclaimer.
investment
Estimate annualized return from account cash flows or from several holding-period returns.
investment
Estimate return on investment, gain or loss, and annualized return from investment amounts and time held.
investment
Estimate simple and discounted payback periods for an investment with recurring annual cash flow.
investment
Solve an investment goal from starting amount, end amount, return rate, contribution amount, and investment length.
investment
Discount a future lump sum or a stream of equal periodic deposits back to today's value.
investment
Project a starting amount and equal periodic deposits forward to a future value.
investment
Solve one time-value-of-money variable from periods, rate, present value, periodic payment, and future value.