Free Compound Interest Calculator Widget

Put a working compound interest calculator on your own website by pasting one line of iframe code into your page's HTML. It is free, needs no sign-up, has no ads or tracking cookies of its own, and resizes for phones. It is the same calculator as on the main page.

Preview

Embed code

Set your own defaults

Add parameters to the iframe address to start with your own numbers, for example ?p=5000&r=7&y=30&d=200&n=12:

ParameterWhat it setsExample
pInitial deposit (dollars)p=5000
dMonthly deposit (dollars)d=200
rAnnual interest rate, in percentr=7
yNumber of yearsy=30
nCompounding periods per year: 365 daily, 12 monthly, 4 quarterly, 1 annuallyn=12

Start the list with ? and join the parameters with &. The example above opens the calculator with a $5,000 deposit, $200 a month, 7% a year, 30 years and monthly compounding. Visitors can still change every number; the defaults only set where the calculator starts.

How to add the widget to your site

  1. Click Copy code above.
  2. Open the page or post where you want the calculator and switch to an HTML view. In WordPress that is a Custom HTML block.
  3. Paste the code and save or publish.
  4. Open the live page and check that the calculator loads and the credit link shows underneath.

Terms of use

  • You can use the widget on any site, including commercial ones.
  • Please keep the small credit link under the calculator.
  • Results are estimates for education, not financial advice.
  • Questions? See the contact page.

FAQ

Is the compound interest calculator widget free?

Yes. It is free to embed and needs no sign-up or account.

Can I use it on a commercial website?

Yes. You can use it on any site, including commercial ones. We only ask that you keep the small credit link under the calculator.

Does the widget show ads or set cookies?

The widget has no ads and no tracking cookies of its own.

Will it work on phones?

Yes. The widget is full width up to 480 pixels and resizes to fit smaller screens.

Can I change the numbers the calculator starts with?

Yes. Add the p, d, r, y and n parameters to the iframe address, as shown in "Set your own defaults". Visitors can still change every number.