{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "mortgage-payment-calculator",
  "category": "financial-adjacent",
  "title": "Mortgage Payment Calculator",
  "description": "Work out the monthly payment on a repayment mortgage, and see how much of the term goes on interest.",
  "url": "https://craftquantities.com/calculators/financial-adjacent/mortgage-payment-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/mortgage-payment-calculator.json",
  "inputCount": 3,
  "testCaseCount": 4,
  "sourceCount": 2,
  "lastVerified": "2026-08-26",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/financial-adjacent/mortgage-payment-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Mortgage Payment Calculator",
    "version": "1.0.0",
    "sourcesChecked": "2026-08-26",
    "url": "https://craftquantities.com/calculators/financial-adjacent/mortgage-payment-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Mortgage Payment Calculator. Version 1.0.0. Sources checked 2026-08-26. https://craftquantities.com/calculators/financial-adjacent/mortgage-payment-calculator/",
      "apa": "Craft Quantities. (2026). Mortgage Payment Calculator (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/financial-adjacent/mortgage-payment-calculator/",
      "harvard": "Craft Quantities (2026) Mortgage Payment Calculator (Version 1.0.0). Available at: https://craftquantities.com/calculators/financial-adjacent/mortgage-payment-calculator/",
      "bibtex": "@misc{craftquantities-calculators-financial-adjacent-mortgage-payment-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Mortgage Payment Calculator},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/financial-adjacent/mortgage-payment-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "principal",
      "label": "Amount borrowed",
      "type": "number",
      "defaultValue": 250000,
      "min": 1000,
      "max": 20000000,
      "step": 1000,
      "help": "The loan amount, after your deposit.",
      "money": {
        "role": "amount"
      }
    },
    {
      "id": "annualRatePercent",
      "label": "Interest rate (% per year)",
      "type": "number",
      "defaultValue": "",
      "min": 0,
      "max": 30,
      "step": 0.01,
      "help": "The annual rate you have been quoted.",
      "money": {
        "role": "rate"
      }
    },
    {
      "id": "years",
      "label": "Term (years)",
      "type": "number",
      "defaultValue": 25,
      "min": 1,
      "max": 40,
      "step": 1,
      "help": "Length of the mortgage in years."
    }
  ],
  "sources": [
    {
      "label": "Standard amortisation: M = P·r(1+r)ⁿ / ((1+r)ⁿ − 1), where r is the monthly rate and n the number of payments"
    },
    {
      "label": "Rate is a user input with no default assumed from any market — enter the rate you have been quoted"
    }
  ],
  "testCases": [
    {
      "name": "250,000 at 5% over 25 years",
      "inputs": {
        "principal": 250000,
        "annualRatePercent": 5,
        "years": 25
      },
      "expected": 1461.48,
      "toleranceDecimalPlaces": -1,
      "unit": "currency/month",
      "confidence": "high",
      "steps": [
        {
          "label": "Total repaid over the term",
          "value": 438442.53113098507,
          "unit": "currency"
        },
        {
          "label": "Total interest",
          "value": 188442.53113098507,
          "unit": "currency"
        },
        {
          "label": "Interest as a share of the loan",
          "value": 75.37701245239403,
          "unit": "%"
        },
        {
          "label": "First payment going to interest",
          "value": 1041.6666666666667,
          "unit": "currency"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "100,000 at 6% over 30 years",
      "inputs": {
        "principal": 100000,
        "annualRatePercent": 6,
        "years": 30
      },
      "expected": 599.55,
      "toleranceDecimalPlaces": -1,
      "unit": "currency/month",
      "confidence": "high",
      "steps": [
        {
          "label": "Total repaid over the term",
          "value": 215838.1890549925,
          "unit": "currency"
        },
        {
          "label": "Total interest",
          "value": 115838.18905499249,
          "unit": "currency"
        },
        {
          "label": "Interest as a share of the loan",
          "value": 115.83818905499248,
          "unit": "%"
        },
        {
          "label": "First payment going to interest",
          "value": 500,
          "unit": "currency"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "A 0% loan is simple division",
      "inputs": {
        "principal": 120000,
        "annualRatePercent": 0,
        "years": 10
      },
      "expected": 1000,
      "toleranceDecimalPlaces": -1,
      "unit": "currency/month",
      "confidence": "high",
      "steps": [
        {
          "label": "Total repaid over the term",
          "value": 120000,
          "unit": "currency"
        },
        {
          "label": "Total interest",
          "value": 0,
          "unit": "currency"
        },
        {
          "label": "Interest as a share of the loan",
          "value": 0,
          "unit": "%"
        },
        {
          "label": "First payment going to interest",
          "value": 0,
          "unit": "currency"
        }
      ],
      "basis": "ambiguous"
    },
    {
      "name": "Halving the term raises the payment but not double",
      "inputs": {
        "principal": 250000,
        "annualRatePercent": 5,
        "years": 12.5
      },
      "expected": 2244.7628,
      "toleranceDecimalPlaces": -2,
      "unit": "currency/month",
      "confidence": "high",
      "steps": [
        {
          "label": "Total repaid over the term",
          "value": 336714.416563872,
          "unit": "currency"
        },
        {
          "label": "Total interest",
          "value": 86714.41656387202,
          "unit": "currency"
        },
        {
          "label": "Interest as a share of the loan",
          "value": 34.68576662554881,
          "unit": "%"
        },
        {
          "label": "First payment going to interest",
          "value": 1041.6666666666667,
          "unit": "currency"
        }
      ],
      "basis": "ambiguous"
    }
  ]
}
