Catalog/loan-simple-vs-compound

Calculators

Simple vs compound interest calculator API

Compares simple interest I = P*r*t against compound A = P(1+r/n)^(nt) and returns the extra cost of compounding. Answers 'How much more does compound interest cost than simple?','What is the total under simple vs compound interest?'.

Price$0.01per request
MethodPOST
Route/v1/calc/loan-simple-vs-compound
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
loaninterestsimplecompoundcomparisonfinancecalculator
API URLhttps://x402.hexl.dev/v1/calc/loan-simple-vs-compound
Integration docs
Example request
{
  "principal": 10000,
  "annualRatePct": 5,
  "years": 10,
  "compoundsPerYear": 12
}
Example response
{
  "simpleInterest": 5000,
  "simpleTotal": 15000,
  "compoundInterest": 6470.09,
  "compoundTotal": 16470.09,
  "extraFromCompounding": 1470.09,
  "formula": "simple I=Prt; compound A=P(1+r/n)^(nt)",
  "breakdown": {
    "principal": 10000,
    "annualRatePct": 5,
    "years": 10,
    "compoundsPerYear": 12
  }
}
Input schema
{
  "type": "object",
  "required": [
    "principal",
    "annualRatePct",
    "years"
  ],
  "properties": {
    "principal": {
      "type": "number",
      "description": "Principal amount.",
      "examples": [
        10000
      ]
    },
    "annualRatePct": {
      "type": "number",
      "description": "Annual rate in percent.",
      "examples": [
        5
      ]
    },
    "years": {
      "type": "number",
      "description": "Number of years.",
      "examples": [
        10
      ]
    },
    "compoundsPerYear": {
      "type": "number",
      "description": "Compounding periods per year (default 12).",
      "examples": [
        12
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}