How We Test Our Calculators

A calculator is only useful if you can trust the answer. Here is exactly how every calculator on this site is checked before it goes live — and every time it changes.

1. Every calculator is checked against independent answers

We keep a suite of automated tests that opens each calculator, enters known inputs and compares the results with answers that were worked out separately from the calculator's own code. At the moment that is more than 140 checks across all of our calculators. The expected answers come from three kinds of sources:

2. We test the behavior, not just the arithmetic

Some mistakes aren't about a number being wrong. So the tests also confirm, for example, that the debt avalanche method really does send extra payments to the highest-interest debt first, that a credit card payment too small to cover the interest is flagged instead of producing a nonsense result, and that adding one month to January 31 lands on the last day of February.

3. We try to break them

Every number box on every calculator is filled with blank values, zeros, negative numbers and absurdly large numbers. A calculator passes only if it shows either a sensible result or a clear message — never an error, a frozen page or "NaN". This stress test has already caught a real problem: an extremely long loan term used to freeze the Loan Calculator, which now limits terms to 100 years.

4. We re-test whenever something changes

The full suite is re-run each time a calculator is added or edited, so a change to one tool can't quietly break another. Each calculator page shows the date its content was last updated.

Where our formulas come from

What our calculators can't do

Being accurate also means being clear about limits:

Your numbers stay private

Every calculation runs in your own browser. The figures you enter are never sent to us or stored anywhere, which you can read more about in our privacy policy.