Free calculators

Car loan, lease and ownership calculator documentation

Inputs, formulas, assumptions and API/MCP examples for the car loan, lease and ownership calculator. Reproduce a calculation and cite its sources.

Content updated . Assumptions reviewed .

Formula and assumptions

Assumptions reviewed:

Sources

Parameters

View all 29 rows
NameDescriptionTypeDefaultMinimumMaximum
currencyCurrencystring"USD"
purchasePricePetrol vehicle purchase pricenumber3000001,000,000,000
downPaymentCash depositnumber500001,000,000,000
annualRateAnnual interest rate (%)number60100
loanMonthsNew vehicle loan monthsinteger601600
horizonMonthsComparison horizon monthsinteger601600
powertrainVehicle for buy and lease comparisonstring"petrol"
annualDepreciationPercentNew vehicle annual depreciation (%)number150100
annualInsuranceNew vehicle annual insurancenumber120001,000,000,000
annualMaintenanceNew vehicle annual maintenancenumber60001,000,000,000
annualDistanceAnnual distance (km)number1500001,000,000
petrolLitresPer100Petrol litres per 100 kmnumber70100
petrolPricePetrol price per litrenumber1.50100
evKWhPer100EV kWh per 100 kmnumber180200
electricityPriceElectricity price per kWhnumber0.20100
evPricePremiumEV price difference above petrolnumber500001,000,000,000
chargerCostUpfront EV charger costnumber100001,000,000,000
currentCarValueCurrent car trade-in valuenumber1000001,000,000,000
currentLoanBalanceCurrent car loan balancenumber500001,000,000,000
currentLoanRateCurrent car annual loan rate (%)number50100
currentLoanMonthsCurrent loan remaining monthsinteger241600
currentDepreciationPercentCurrent car annual depreciation (%)number100100
currentAnnualInsuranceCurrent car annual insurancenumber90001,000,000,000
currentAnnualMaintenanceCurrent car annual maintenancenumber120001,000,000,000
leaseMonthlyMonthly lease quote for this horizonnumber45001,000,000,000
leaseUpfrontLease upfront paymentnumber200001,000,000,000
leaseEndFeeLease end feenumber30001,000,000,000
leaseAnnualDistanceLease annual km allowancenumber1500001,000,000
leaseExcessDistanceFeeLease charge per excess kmnumber0.150100

JSON API

GET accepts one input parameter containing URL-encoded JSON. POST sends the JSON input object. Prefer POST for personal figures. Inputs are limited to 16 KiB. POST results are not stored; GET results may be cached for up to 24 hours.

curl -X POST https://klarfort.com/tools/api/v1/car-loan-calculator -H "Content-Type: application/json" --data '{"currency":"USD","purchasePrice":30000,"downPayment":5000,"annualRate":6,"loanMonths":60,"horizonMonths":60,"powertrain":"petrol","annualDepreciationPercent":15,"annualInsurance":1200,"annualMaintenance":600,"annualDistance":15000,"petrolLitresPer100":7,"petrolPrice":1.5,"evKWhPer100":18,"electricityPrice":0.2,"evPricePremium":5000,"chargerCost":1000,"currentCarValue":10000,"currentLoanBalance":5000,"currentLoanRate":5,"currentLoanMonths":24,"currentDepreciationPercent":10,"currentAnnualInsurance":900,"currentAnnualMaintenance":1200,"leaseMonthly":450,"leaseUpfront":2000,"leaseEndFee":300,"leaseAnnualDistance":15000,"leaseExcessDistanceFee":0.15}'
fetch("https://klarfort.com/tools/api/v1/car-loan-calculator", {method:"POST", headers:{"Content-Type":"application/json"}, body:JSON.stringify({"currency":"USD","purchasePrice":30000,"downPayment":5000,"annualRate":6,"loanMonths":60,"horizonMonths":60,"powertrain":"petrol","annualDepreciationPercent":15,"annualInsurance":1200,"annualMaintenance":600,"annualDistance":15000,"petrolLitresPer100":7,"petrolPrice":1.5,"evKWhPer100":18,"electricityPrice":0.2,"evPricePremium":5000,"chargerCost":1000,"currentCarValue":10000,"currentLoanBalance":5000,"currentLoanRate":5,"currentLoanMonths":24,"currentDepreciationPercent":10,"currentAnnualInsurance":900,"currentAnnualMaintenance":1200,"leaseMonthly":450,"leaseUpfront":2000,"leaseEndFee":300,"leaseAnnualDistance":15000,"leaseExcessDistanceFee":0.15})})
import json, urllib.request
request = urllib.request.Request("https://klarfort.com/tools/api/v1/car-loan-calculator", data=json.dumps({"currency":"USD","purchasePrice":30000,"downPayment":5000,"annualRate":6,"loanMonths":60,"horizonMonths":60,"powertrain":"petrol","annualDepreciationPercent":15,"annualInsurance":1200,"annualMaintenance":600,"annualDistance":15000,"petrolLitresPer100":7,"petrolPrice":1.5,"evKWhPer100":18,"electricityPrice":0.2,"evPricePremium":5000,"chargerCost":1000,"currentCarValue":10000,"currentLoanBalance":5000,"currentLoanRate":5,"currentLoanMonths":24,"currentDepreciationPercent":10,"currentAnnualInsurance":900,"currentAnnualMaintenance":1200,"leaseMonthly":450,"leaseUpfront":2000,"leaseEndFee":300,"leaseAnnualDistance":15000,"leaseExcessDistanceFee":0.15}).encode(), headers={"Content-Type":"application/json"})
print(urllib.request.urlopen(request).read().decode())

Connected assistants

Connect using https://klarfort.com/tools/mcp. Discover this calculator with tools/list, then call car-loan-calculator. Protocol versions 2026-07-28 and 2025-11-25 are supported. Modern requests carry protocol metadata and matching HTTP headers. Set Mcp-Name to params.name for tools/call and to params.uri for resources/read. Older clients initialize first.

Limits: 120 requests per minute per address and approximately 3,000 per minute per edge location. Simulations are capped at 1,000 paths, 600 months and 150,000 path-months (paths multiplied by months). Shorten the duration or reduce paths when that work limit is exceeded. A limit response returns 429 and Retry-After. No exact remaining-request count is available.

Usage and credit

Free for personal, commercial and any other lawful use with credit to KlarFort at https://klarfort.com/. Third-party data terms still apply.

Place a visible credit near the reused material or in the credits for your work or integration. One clear credit per work or integration is sufficient; no separate credit per API request is required. Links to individual calculators are optional.

Computed with KlarFort Calculators, https://klarfort.com/

The API returns this text in credit and the homepage in credit_url. The optional citation_url identifies the calculator for reference. See usage and credit for the full permission.

KlarFort is not financial, investment, tax, or legal advice. Verify outputs before making material decisions.