Engineering economics calculator
Solve time-value-of-money problems step by step: choose what to solve for, enter what you know, and get the answer with the formula, the substitution and a cash flow diagram. The cash flow diagram tab takes any mix of deposits, withdrawals and payments, moves each one to a focal date and solves the equation of value Σ↑ = Σ↓ for the unknown X. Pick your currency; the method is the same in any of them.
Sign convention: ↑ cash outflow (withdrawals, payments, bills) and ↓ cash inflow (deposits, income, loans received). Your inputs are saved in this browser.
What engineering economics is about
Engineering economics is the set of quantitative methods used to choose the best of several technically workable alternatives. Most engineering decisions trade costs and benefits that happen at different times, such as spending on a project today to earn from it later, so every amount has to be compared at the same point in time. That is what interest and the cash flow diagram are for.
Simple interest
Simple interest is earned on the principal alone: I = Pin and F = P(1 + in), where P is the principal, i the rate per year and n the time in years. It is used for short-term loans of less than a year and person-to-person transactions. Ordinary simple interest uses a 360-day year with 30-day months. Exact simple interest uses 365 days, or 366 in a leap year. A year is a leap year when it divides by 4, except century years (1900, 2000), which must divide by 400. When the time is given as two dates, count the days after the start date up to and including the end date: from January 5 to August 21, 2023 is 228 days.
Compound interest
With compound interest, the interest earned in each period is added to the principal and earns interest itself: F = P(1 + i)ⁿ and P = F(1 + i)⁻ⁿ. (1 + i)ⁿ is the future value factor and (1 + i)⁻ⁿ the present value factor. Here i is the rate per compounding period and n the number of periods.
Nominal, per-period and effective rates
A nominal rate r is quoted per year together with how often it compounds: m = 1 (annually), 2 (semi-annually), 4 (quarterly), 6 (bi-monthly), 12 (monthly) or 365 (daily). The rate per period is i = r/m. The effective rate is the interest actually earned in one year: iₑ = (1 + r/m)ᵐ − 1. Effective rates are used to compare offers that compound differently and to convert a rate from one compounding method to another: 6% compounded semi-annually is the same as 5.956% compounded quarterly, because both give an effective rate of 6.09%.
Continuous compounding
When interest compounds continuously, the principal grows at a rate proportional to itself, and F = Peʲⁿ, where j is the continuously compounded rate and n is in years. Its effective rate is iₑ = eʲ − 1, so 12% compounded continuously equals 12.75% effective. The same exponential appears in radioactive decay and capacitor charging.
Cash flow diagrams and the equation of value
A cash flow diagram draws time as a horizontal line divided into periods, with each cash flow as a vertical arrow at the time it happens. “At the end of the 4th year” is drawn at 4; “at the beginning of the 1st year” is drawn at 0. To solve one:
- Select a focal date (often the date of the unknown).
- Draw a reference line at the focal date.
- Move every cash flow to that line: amounts before it grow with (1 + i)ⁿ, amounts after it are brought back with (1 + i)⁻ⁿ, where n is the number of periods between the flow and the focal date.
- Solve the equation of value: at the focal date, the sum of the arrows pointing up equals the sum of the arrows pointing down, Σ↑ = Σ↓.
Example: 50,000 is deposited at the start, ₱7,500 withdrawn at the end of year 2 and ₱21,000 deposited at the end of year 4, at 7% per year. Two years after the last deposit, the balance X satisfies X + 7,500(1.07)⁴ = 50,000(1.07)⁶ + 21,000(1.07)², so X = 89,248.45. It is one of the worked examples in the cash flow diagram tab.
Annuities
An annuity is a series of equal payments A at equal intervals. For an ordinary annuity (payments at the end of each period), P = A[1 − (1 + i)⁻ⁿ]/i and F = A[(1 + i)ⁿ − 1]/i. An annuity due pays at the start of each period, so both values are multiplied by (1 + i). A deferred annuity starts later: its present worth is the ordinary value moved back k more periods. A perpetuity pays forever, and P = A/i.
Questions students ask
What is the difference between ordinary and exact simple interest?
Ordinary simple interest counts a year as 360 days and every month as 30 days. Exact simple interest counts the actual number of days and a year of 365 days, or 366 in a leap year. Ordinary interest gives a slightly larger amount for the same number of days.
How do I convert a nominal rate to an effective rate?
Divide the nominal rate by the number of compounding periods per year to get the rate per period, add 1, raise it to the number of periods per year and subtract 1: iₑ = (1 + r/m)ᵐ − 1. For 1% per quarter, iₑ = (1.01)⁴ − 1 = 4.06%.
How do I find how long it takes for money to grow?
Use n = ln(F/P) ÷ ln(1 + i), which gives the number of compounding periods; divide by m for years. Money at 7% compounded semi-annually quadruples in ln 4 ÷ ln 1.035 = 40.3 half-years, or 20.15 years.
Which focal date should I choose?
Any date gives the same answer, because moving every amount by the same number of periods multiplies both sides of the equation by the same factor. Choosing the date of the unknown keeps the arithmetic simplest, since X needs no factor.
Which way should the arrows point?
Pick one point of view and keep it. This calculator takes the depositor’s point of view: deposits and money received point down, withdrawals and payments point up. You can use the opposite convention as long as every arrow follows it. If X comes out negative, the unknown is on the wrong side: flip its arrow.
More engineering and electricity
Connected tools
The same idea from another angle, across the site.