Home / How Our Calculators Are Made
How Our Calculators Are Made
Every calculator on this site is built by hand from an official formula, tested against worked examples, and read by a person before it is published. This page explains each step, shows the maths working, and sets out the limits of what the results can tell you.
Why we wrote this page
People use the calculators on this site to make real decisions: how much they can borrow, what tax they will pay when they buy a home, and whether their weight sits in a healthy range. Those decisions deserve more than a black box that prints out a number. This page opens the box. It shows where the figures come from, how the formulas work, how the code is written and tested, and where the limits lie.
Nothing here is a secret. The formulas are the standard ones used across the United Kingdom, the sources are public, and the worked examples use figures you can check yourself on the calculator pages. If a number on this page ever looks wrong to you, the worked examples give you everything you need to test it.
Every calculator starts with the official source
Each calculator begins with the rule as published by the body responsible for it. Tax rates and thresholds come from GOV.UK guidance. Bank Rate comes from the Bank of England. Health bands come from the NHS and the World Health Organization. Population and price figures come from the Office for National Statistics. We do not take a rate from a news article, a forum, or another calculator site when the official publisher states it plainly.
That matters because rates move. The Bank of England raised Bank Rate to 4% on 5 November 2026, and the next decision was due on 17 December 2026. When a rate changes, the figure on the relevant calculator page is re-checked against the official source and the calculator is tested again before the change is treated as done. A mortgage quote from last year is not a fact about this year, and our pages are written with that in mind.
The same care applies to the smaller details that change an answer. Stamp Duty Land Tax is charged in bands, and the bands in force from 1 April 2025 are different from the temporary bands that applied before that date. First-time buyer relief has its own thresholds, which are different again. A calculator that used the old bands would give a confident, precise, wrong answer, so the bands are checked against the current guidance rather than carried forward from an older page.
Sources we check
- Bank of England — Bank Rate and the dates of Monetary Policy Committee decisions.
- GOV.UK — Stamp Duty Land Tax bands, Income Tax thresholds, and benefit rates.
- NHS — body mass index bands and the healthy weight range for adults.
- Office for National Statistics — population, earnings, and price data used in our guides.
- World Health Organization — the standard BMI classification used around the world.
The formulas, shown working
A calculator is only as honest as its formula. Every calculator on this site is built from a formula written out in full, and each one is tested by hand before it is coded. The three worked examples below use figures checked against the calculators on this site on 21 November 2026. Run the same figures through the calculator pages and you will get the same answers.
Mortgage repayments
A repayment mortgage is worked out with the standard amortisation formula. The monthly payment M depends on the amount borrowed P, the monthly interest rate r, and the number of monthly payments n:
M = P × r(1 + r)n / ((1 + r)n − 1)
The monthly rate r is the annual rate divided by 12, and n is the term in years multiplied by 12. The formula spreads the loan and the interest evenly across every payment, so the balance reaches zero at the end of the term.
Take a £200,000 repayment mortgage at 4% a year over 25 years. The monthly rate is 4% divided by 12, which is 0.333% (r = 0.003333), and the number of payments is 25 multiplied by 12, which is 300. Raising 1.003333 to the power of 300 gives about 2.7138. Putting those figures into the formula gives a monthly payment of £1,055.67.
Over the full 25 years that is £316,702 repaid in total, of which £116,702 is interest. We ran the same figures through the mortgage calculator on this site on 21 November 2026 and it returned exactly the same answer: £1,055.67 a month. The rate of 4% is the Bank of England Bank Rate set on 5 November 2026; a real mortgage deal would use the rate on that deal, which is why the calculator asks you to enter your own rate rather than assuming one.
Body mass index
Body mass index, or BMI, is a simple ratio of weight to height. It is the same formula used by the NHS:
BMI = weight in kilograms ÷ (height in metres × height in metres)
Height must be in metres, so a height given in centimetres is divided by 100 first. The result is rounded to one decimal place.
Take a person who weighs 80 kg and is 1.75 metres tall. Height squared is 1.75 multiplied by 1.75, which is 3.0625. BMI is 80 divided by 3.0625, which is 26.1. That sits in the overweight band, which runs from 25 to 29.9. The BMI calculator on this site gives the same result for the same figures: 26.1, Overweight, with a healthy weight range of 56.7 to 76.3 kg for that height.
| Category | BMI range |
|---|---|
| Underweight | Under 18.5 |
| Healthy weight | 18.5 to 24.9 |
| Overweight | 25 to 29.9 |
| Obese | 30 and above |
Those bands are the NHS bands for adults. BMI is a screening measure: it does not measure body fat directly, and it can mislead for people with a lot of muscle, for older people, and for children, whose results are judged against age charts instead. The calculator page says so, and this page repeats it because it is part of using the number honestly.
Stamp Duty Land Tax
Stamp Duty Land Tax, or SDLT, is charged in bands on the purchase price of a home in England and Northern Ireland. Each rate applies only to the part of the price inside its band, like Income Tax. The bands in force from 1 April 2025 are:
| Part of the purchase price | SDLT rate |
|---|---|
| Up to £125,000 | 0% |
| £125,001 to £250,000 | 2% |
| £250,001 to £925,000 | 5% |
| £925,001 to £1,500,000 | 10% |
| Over £1,500,000 | 12% |
Take a home mover buying a home for £300,000. The first £125,000 is charged at 0%, so £0. The part from £125,001 to £250,000 is £125,000 at 2%, so £2,500. The part from £250,001 to £300,000 is £50,000 at 5%, so £2,500. Adding the three parts gives a total of £5,000, an effective rate of 1.67% on the whole price. The stamp duty calculator on this site gives the same answer for the same purchase: £5,000.00, with the same band-by-band breakdown.
The bands above are the standard rates for a home mover. First-time buyers pay 0% on the first £300,000 and 5% on the part from £300,001 to £500,000, and buyers of an additional property pay a surcharge on top of the standard rates. The calculator asks which kind of buyer you are before it works out the bill, because the answer changes with it.
The same discipline applies to every other calculator on the site. The formula is written out, a worked example is checked by hand, and only then is the code expected to reproduce the hand-worked answer exactly. If it cannot, the calculator is not published.
Hand-built code that runs in your browser
Each calculator is hand-written JavaScript, built for one job on one page. It is not generated in bulk, and it is not a widget copied from somewhere else. The code reads the numbers you type, checks that they sit inside sensible ranges, applies the formula, rounds the answer to a sensible precision, and shows a breakdown of how the answer was reached.
The calculation runs entirely in your browser. The numbers you type stay on the page: they are never sent to a server, never stored, and never shared. That is a deliberate choice. A mortgage figure or a weight is personal, and there is no reason for it to leave your device in order to be divided or multiplied.
Before a calculator is published it is tested against hand-worked examples like the three on this page. The code must match the hand calculation to the penny. Edge cases are tested too: a zero deposit, a very large value, and values that sit exactly on a band edge, such as a purchase price of exactly £125,000 or exactly £250,000 for stamp duty, where a rounding slip would push the answer into the wrong band. If a test fails, the calculator is fixed and tested again. It is not published with a known error.
The pages are built to work on a phone as well as on a desktop, because most people reach for a calculator while they are standing in a kitchen or sitting with an estate agent, not at a desk. Buttons are large enough to tap, results are shown in plain figures, and the breakdown is kept next to the answer so you can see how it was reached without hunting for it.
Written and checked by people
The guide text on each calculator page is written and reviewed by people, not auto-generated. A person decides what a first-time user needs to know, which mistakes are worth warning about, and which figures need a source next to them. That is why the pages carry worked examples, plain-English explanations, and warnings where a rule is easy to misread, such as the fact that stamp duty is banded rather than flat, or that a mortgage result assumes the interest rate stays fixed for the whole term.
Every page is checked live after it is published. The calculator is run with real figures, the links are clicked, and the layout is looked at on a phone and on a desktop. A page that looks right in an editor can still break on a small screen, and a formula that works in a draft can still be let down by a button that does nothing, so the live check is part of the job rather than an afterthought.
The same human check applies when something changes. When Bank Rate moves, or a tax band is revised, the affected pages are read again from the top, the figures are re-checked against the official source, and the calculator is run again with fresh examples. A calculator is a small thing to build and a serious thing to get wrong, so the checking is done by hand rather than assumed.
What the calculators can and cannot do
The calculators on this site give estimates based on the figures and assumptions stated on each page. They are a starting point for a decision, not the decision itself. A mortgage result assumes the interest rate stays fixed for the full term, which is rarely true in practice: most UK mortgage deals fix the rate for two to five years and then move to a variable rate, so the real cost over 25 years will differ from the estimate.
Tax and benefit rules change, and they change often enough that last year’s answer can be wrong this year. The stamp duty bands on this page are those in force from 1 April 2025 for England and Northern Ireland. Scotland charges Land and Buildings Transaction Tax and Wales charges Land Transaction Tax, so the stamp duty calculator does not apply to purchases there. If a rule has changed since a page was written, the official source is the one to trust, and each page names the source it was built from so you can check it.
Health calculators have their own limits. A BMI of 26.1 tells you that a weight sits in the overweight band for most adults, but it does not diagnose anything, and it does not account for muscle mass, age, or body shape. If a health result worries you, the right next step is a conversation with a doctor or a dietitian, not a second calculator.
In short: use the calculators to understand the shape of an answer, to compare options, and to sense-check a figure someone else has given you. Then check the official source for your own case, and speak to your lender, your solicitor, or a regulated adviser before you commit to anything. That is what the calculators are for, and it is the only promise we make about them.
How Our Calculators Are Made FAQ
Answers to the most frequently asked questions about how the calculators on this site are built, checked, and kept up to date.
No. The calculators give estimates based on the figures and assumptions stated on each page. A mortgage result assumes the rate stays fixed for the full term, a tax result uses the bands in force on the date shown, and a health result is a screening measure. The maths is exact for the figures entered; whether those figures match your real case is something only you, your lender, or the official source can confirm.
From the official publisher of each figure: Bank Rate from the Bank of England, tax bands from GOV.UK, BMI bands from the NHS and the World Health Organization, and population and price data from the Office for National Statistics. Each figure is re-checked against its source when it changes, and the calculator is tested again before the update is treated as done.
Bank Rate is the rate the Bank of England pays to banks, and it stood at 4% after the decision of 5 November 2026. The rate on a real mortgage deal is set by the lender and is usually different. The calculator asks for the rate on your deal so the answer describes your mortgage, and the worked example on this page uses 4% so you can follow it against Bank Rate.
No. Each calculator runs entirely in your browser as JavaScript. The numbers you type stay on the page and are never sent to a server, never stored, and never shared. Closing the page removes them.
Usually because the inputs differ. Lenders include fees and charges that a calculator does not, they may use a different rate after a fixed period ends, and they round differently. A calculator result is an estimate for comparing options; the figure in your mortgage offer is the one that governs your loan, so use that for the final decision.
Every page is checked live after it is published, and checked again whenever a rate or a rule it depends on changes. The check means running the calculator with fresh figures, reading the guide text, and looking at the page on a phone and on a desktop. Figures on this page were last checked on 21 November 2026.
People. The guide text on each page is written and reviewed by a person, not auto-generated. A person chooses the examples, writes the warnings about common mistakes, and reads the page live after publishing to make sure it works as intended.
If you want to see the process in action, try one of the calculators behind the examples on this page: the Mortgage Calculator, the BMI Calculator and Weight Chart, or the Stamp Duty Calculator. Each one shows its working, and each one was built the way this page describes.
