Skip to content
All tools

Loan Calculator — Monthly Payment & Schedule

Loan interest calculator: declining balance or equal monthly installments, total interest, full amortization schedule, grace period. Free, in-browser, with API.

·6 runs ·Developer API ↓

Equal principal each month plus interest on the outstanding balance: the first payment is highest, then decreases; less total interest.

Enter amount, rate and term — results appear instantly.

For reference only — not a substitute for the lender's official schedule. Calculated in your browser — nothing is sent to the server or stored.

Developer API

Developer API

Free

Call this exact tool from your code over JSON REST — same result as on the web, authenticated with an API key.

Endpoint

POST https://sieutool.net/api/v1/tools/lai-vay

Auth: send the X-API-Key header — create a free key in Account → API keys.

  • Rate limit60 requests/min
  • Daily quota1.000 requests/day
  • PriceFree · up to 1 items/request

Request parameters

ParameterTypeDescription
amount *stringSố tiền vay (đồng)
rate *stringLãi suất (%/năm)
months *stringKỳ hạn (tháng)
method"reducing" | "annuity"Cách trả(default "reducing")
gracestringÂn hạn gốc (tháng)

* required. Send JSON in the body, Content-Type: application/json.

Code examples

curl -X POST 'https://sieutool.net/api/v1/tools/lai-vay' \
  -H 'Content-Type: application/json' \
  -H "X-API-Key: $NXP_API_KEY" \
  -d '{"amount":120000000,"rate":12,"months":12,"method":"annuity"}'

Sample response

{
  "ok": true,
  "tool": "lai-vay",
  "version": "1.0.0",
  "data": {
    "method": "annuity",
    "amount": 120000000,
    "rate": 12,
    "months": 12,
    "grace": 0,
    "rows": [
      {
        "k": 1,
        "begin": 120000000,
        "principal": 9461855,
        "interest": 1200000,
        "payment": 10661855,
        "end": 110538145
      },
      {
        "k": 2,
        "begin": 110538145,
        "principal": 9556474,
        "interest": 1105381,
        "payment": 10661855,
        "end": 100981671
      },
      {
        "k": 3,
        "begin": 100981671,
        "principal": 9652038,
        "interest": 1009817,
        "payment": 10661855,
        "end": 91329633
      },
      {
        "k": 4,
        "begin": 91329633,
        "principal": 9748559,
        "interest": 913296,
        "payment": 10661855,
        "end": 81581074
      },
      {
        "k": 5,
        "begin": 81581074,
        "principal": 9846044,
        "interest": 815811,
        "payment": 10661855,
        "end": 71735030
      },
      {
        "k": 6,
        "begin": 71735030,
        "principal": 9944505,
        "interest": 717350,
        "payment": 10661855,
        "end": 61790525
      },
      {
        "k": 7,
        "begin": 61790525,
        "principal": 10043950,
        "interest": 617905,
        "payment": 10661855,
        "end": 51746575
      },
      {
        "k": 8,
        "begin": 51746575,
        "principal": 10144389,
        "interest": 517466,
        "payment": 10661855,
        "end": 41602186
      },
      {
        "k": 9,
        "begin": 41602186,
        "principal": 10245833,
        "interest": 416022,
        "payment": 10661855,
        "end": 31356353
      },
      {
        "k": 10,
        "begin": 31356353,
        "principal": 10348291,
        "interest": 313564,
        "payment": 10661855,
        "end": 21008062
      },
      {
        "k": 11,
        "begin": 21008062,
        "principal": 10451774,
        "interest": 210081,
        "payment": 10661855,
        "end": 10556288
      },
      {
        "k": 12,
        "begin": 10556288,
        "principal": 10556288,
        "interest": 105563,
        "payment": 10661851,
        "end": 0
      }
    ],
    "total_interest": 7942256,
    "total_payment": 127942256,
    "first_payment": 10661855,
    "last_payment": 10661851,
    "max_payment": 10661855,
    "monthly_rate": 0.01
  }
}

Try it (live call)

No API key yet? Sign in and create a free key, then paste it below. Create API key
Paste your API key (kept in this page only, never stored) and send a request. Test requests count toward your key's rate limit.

Main error codes

HTTPcodeMeaning
400BAD_INPUT / NO_INPUT / TOO_MANY_UNITS / BAD_NUMBER…Invalid input — the message names the field
401MISSING_API_KEY / INVALID_API_KEY / REVOKED_API_KEYMissing, invalid or revoked API key
429RATE_LIMITED / IP_RATE_LIMITEDPer-minute rate limit exceeded — wait for Retry-After
429DAILY_QUOTA_EXCEEDEDDaily quota used up — the upgrade field suggests a paid plan
429CLUSTER_QUOTA_EXCEEDEDLinked accounts (same device/network) used up the daily quota — the free quota is shared across the group, not multiplied per account
503SERVER_BUSY / TOOL_BUSY / API_DISABLEDServer under heavy load or API paused — wait for Retry-After

Every response carries X-RateLimit-Remaining / X-RateLimit-Remaining-Day; 429/503 errors include Retry-After (seconds).

How to use

Calculate a bank loan (mortgage, car, personal loan): enter the amount, annual rate and term to see the monthly payment, total interest and a month-by-month repayment schedule. Supports the two common methods in Vietnam — declining balance with equal principal and equal monthly installments (annuity) — plus a principal grace period. Everything runs in your browser.

  1. Enter the loan amount, annual interest rate (%) and term in months — or click Try an example (500 million VND, 9%/year, 20 years).
  2. Choose a method: Declining balance (equal principal, payments shrink each month) or Equal installments (same payment every month). If the bank gives a principal grace period, enter the interest-only months.
  3. Read the summary — first and last payment, total interest, total repaid — and the monthly schedule table.
  4. Click Copy for the summary or Download CSV to open the schedule in Excel/Google Sheets.

Frequently asked questions

Declining balance: equal principal each month, interest on the outstanding balance, so the first payment is the largest and total interest is lower. Equal installments: the same amount every month, easier to budget but more total interest. Example 120M VND, 12%/year, 12 months: equal principal → total interest 7,800,000; equal installments → 10,661,855 per month, total interest 7,942,256.

Enter the ANNUAL rate as banks advertise it; the tool divides by 12 (9%/year = 0.75%/month).

Close but not exact: banks may count actual days, reset floating rates after the promo period and add insurance or prepayment fees. Use it to compare and plan; the contract schedule is authoritative.

Not on the web: everything runs in your browser; the server only records 1 run (without numbers). With the API, numbers are computed in memory and not stored.
  • For reference only — not a substitute for the lender's official repayment schedule.
All Finance tools →
Sends only the tool name, the last error code and your browser type — never what you typed.