Eskillsfy

Home / Blog / Calculators

Calculators · 23 Nov 2026

SIP & Compound Interest Calculator: how it works and how to build one

Future value of monthly SIPs and lump sums. This guide explains what happens behind the button and shows the code, so you can build your own.

What it does

See how a monthly SIP or a one-time investment grows at an expected yearly return, with a step-up option that raises the SIP each year. Shows total invested, estimated returns and a year-by-year table.

When to use it

  • Mutual fund planning
  • Retirement and education goals
  • Comparing SIP with lump sum

How to use it

  1. Pick SIP or lump sum.
  2. Enter amount, return and years.
  3. Read the future value and table.

Try it free in your browser, nothing is uploaded: https://eskillsfy.com/tools/sip-calculator

How it works

A SIP is a monthly investment that compounds. The tool simulates it month by month: add the instalment, then grow the total by the monthly rate. This handles step-ups (raising the SIP every year) that the closed-form formula can’t.

For a fixed SIP the closed form is FV = P × ((1+r)^n − 1) ÷ r × (1+r), with r the monthly rate.

Build it yourself

Here is the core of the tool. It has no dependencies unless noted, so you can paste it into any TypeScript or JavaScript project.

sip.ts (ts)

export function sip(monthly: number, yearlyReturn: number, years: number, stepUpPct = 0) {
  const r = yearlyReturn / 12 / 100;
  let value = 0, invested = 0, amount = monthly;
  for (let y = 0; y < years; y++) {
    for (let m = 0; m < 12; m++) { value = (value + amount) * (1 + r); invested += amount; }
    amount *= 1 + stepUpPct / 100;
  }
  return { value, invested, gains: value - invested };
}

sip(10000, 12, 15).value; // ≈ ₹50.5 lakh

Make it production-ready

  • Adjust for inflation to show value in today’s money.

Questions

Are returns guaranteed?

No. Market returns change. This only shows what a fixed rate would give.

Try the SIP & Compound Interest Calculator

Free, runs in your browser, nothing is uploaded.

Open it
Keep reading

More in Calculators

All posts