Skip to content
πŸ› οΈToolsShed

Payback Period Calculator

Calculate how long it takes to recover an investment from annual cash inflows.

Year 1
Year 2
Year 3
Year 4
Year 5

About this tool

The Payback Period Calculator helps you determine how long it takes to recover an initial investment through annual cash inflows. This metric is essential for evaluating investment opportunities in business, real estate, and project management, as it shows how quickly your money will return to you. A shorter payback period typically indicates a less risky and more attractive investment.

To use the calculator, simply enter your initial investment amount, the annual net cash inflows (the profit or returns you expect each year), and click Calculate. The tool will instantly show you the payback period in years and months, giving you a clear timeline for capital recovery. This straightforward approach works best for projects with consistent annual returns and helps decision-makers quickly compare multiple investment options.

Frequently Asked Questions

Code Implementation

def payback_period(initial_investment, cash_flows):
    """
    Returns simple payback period in years.
    cash_flows: list of annual cash inflows
    """
    cumulative = 0
    for year, cf in enumerate(cash_flows, start=1):
        cumulative += cf
        if cumulative >= initial_investment:
            # Interpolate for exact fractional year
            overshoot = cumulative - initial_investment
            return year - overshoot / cf
    return None  # Not recovered within given cash flows

# Example
initial_investment = 50000
cash_flows = [10000, 15000, 18000, 20000, 22000]

period = payback_period(initial_investment, cash_flows)
if period:
    print(f"Payback Period: {period:.2f} years")
else:
    print("Investment not recovered in the given period")

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.