# Credit card payoff calculator > How long will it take to pay off your credit card? See the months to a zero balance and the interest you pay, at a fixed payment or the card's minimum. Find out how many months it takes to pay off a credit card and how much interest it costs, paying a fixed amount or only the minimum payment. - Page: https://how.box/credit-card/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/credit-card/?b={b}&r={r}&m={m}&p={p}&mp={mp}&mf={mf}&mi={mi}&c={c} - `b` (number 0 to 1e7): Card balance owed now. Example: `3000`. - `r` (number 0 to 100): Nominal annual card rate. Example: `20`. - `m` (fixed or minimum): fixed or minimum payment. Example: `fixed`. - `p` (number 0 to 1e7): Fixed monthly payment (m=fixed). Example: `150`. - `mp` (number 0.1 to 100): Minimum payment percent of the balance (m=minimum). Example: `3`. - `mf` (number 0 to 1e7): Smallest minimum payment (m=minimum). Example: `20`. - `mi` (boolean): Minimum is the percent plus the month's interest (m=minimum). Example: `false`. - `c` (AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XCD, XCG, XDR, XOF, XPF, XSU, YER, ZAR, ZMW, ZWG or ZWL): Display currency. Example: `EUR`. Example answer: https://how.box/credit-card/?b=3000&r=20&m=fixed&p=150&mp=3&mf=20&mi=0&c=EUR A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `credit_card_calculate`: Credit card payoff: months until the balance is zero and the interest paid, at a fixed monthly payment (mode "fixed") or the card's minimum payment rule (mode "minimum": percent of the balance, a floor amount, optionally plus the month's interest). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"credit_card_calculate","arguments":{"balance":3000,"annual_rate_percent":20,"mode":"fixed","payment":150,"minimum_percent":3,"minimum_floor":20,"minimum_plus_interest":false,"currency":"EUR"}}}` - GET: https://how.box/mcp/run/credit_card_calculate?balance=3000&annual_rate_percent=20&mode=fixed&payment=150&minimum_percent=3&minimum_floor=20&minimum_plus_interest=false¤cy=EUR ## How it works Each month the card charges interest on what you still owe, and your payment first covers that interest. Only the rest lowers the balance. The bigger the share of your payment that goes past the interest, the faster the debt ends. The monthly interest is I = B × r / 12, where B is the balance and r the yearly rate. Paying a fixed P, the number of months is n = −ln(1 − B·r/12 / P) / ln(1 + r/12). A minimum payment shrinks with the balance, so it pays off slowly and costs far more interest; the US Consumer Financial Protection Bureau warns about this on its credit card pages. The method follows Microsoft's NPER and PMT references for equal monthly periods. The estimate assumes no new purchases, fees, promotional rates or daily interest, and rounds interest to the cent each month. The statement from your card issuer is the final word. ## FAQ **Why does paying only the minimum take so long?** The minimum is a percent of the balance, so it falls as the balance falls, and most of it goes to interest. A fixed payment keeps the same amount working on the debt every month. **What if the result says never?** Your payment is no larger than the month's interest, so the balance stays the same or grows. Any payment above the first month's interest, shown under the result, will end the debt. **Which rate should I enter?** The card's yearly purchase interest rate from your statement or terms. If the card states an effective rate that includes fees, the result is only an approximation. **Can I keep using the card during repayment?** New spending is not included. It increases the balance and can extend the payoff time beyond this estimate. **Will the last payment be smaller?** It can be. The final payment only covers the remaining balance and that month’s interest. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)