Cost-Benefit Analysis Calculator
Evaluate a project with discounted cost-benefit analysis: net present value of an upfront cost and steady yearly benefits and costs, plus the benefit-cost ratio.
Last updated: September 2026
Net Present Value
$34,201.63
Formula below · 2 sources (whitehouse.gov, openstax.org) · Updated Sep 2026
Compare with similar
About this calculator
Cost-benefit analysis puts every benefit and cost of a project in today's dollars, so money received in year 10 counts for less than money spent now. For an upfront cost and the same benefits and costs every year:
annuity factor = (1 − (1 + r)⁻ⁿ) ÷ r NPV = (annual benefits − annual costs) × annuity factor − initial cost benefit-cost ratio = PV of benefits ÷ (initial cost + PV of annual costs)
Yearly amounts are assumed to arrive at the end of each year. With the defaults, a $100,000 project returns $25,000 a year and costs $5,000 a year to run for 10 years. At 8% the annuity factor is 6.7101, so NPV = $20,000 × 6.7101 − $100,000 = $34,202 and the benefit-cost ratio is $167,752 ÷ $133,550 = 1.26.
A positive NPV (a ratio above 1) means the project returns more than the discount rate. The rate does a lot of work: it should reflect the return you could get elsewhere at similar risk. US federal agencies follow OMB guidance on discount rates, which has varied over time (3% and 7% real rates were the long-standing pair); businesses typically use their cost of capital. Use real (inflation-adjusted) amounts with a real rate, or nominal amounts with a nominal rate, but do not mix them. When projects differ in size, NPV ranks them by total value created and the ratio by value per dollar of cost.
How to use
Enter the upfront cost, the yearly benefits and running costs, the project's life and the discount rate. Example 1 (defaults): $100,000; $25,000 benefits and $5,000 costs a year; 10 years; 8% → NPV $34,202, ratio 1.26. Example 2: $100,000; $40,000 and $15,000 a year; 10 years; 5% → annuity factor 7.7217, NPV $93,043, ratio 1.43. Example 3: the defaults at 15% → annuity factor 5.0188, NPV $20,000 × 5.0188 − $100,000 = $375, close to break-even.
Frequently asked questions
What discount rate should I use?
The return you give up by funding this project instead of the next-best use of the money. Companies often use their weighted average cost of capital; public projects follow government guidance. Try a few rates: if the decision flips between them, the project is marginal.
What is the difference between NPV and the benefit-cost ratio?
NPV is the net value created in dollars; the ratio is benefits per dollar of cost. With a limited budget, ranking by ratio gets the most value per dollar; choosing between mutually exclusive projects, pick the higher NPV.
What if benefits are not the same every year?
Discount each year separately: PV = amount ÷ (1 + r)^year, and add them up. This calculator assumes a level stream, which suits projects with steady savings or revenue.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.