calculate-loan

01 Loan payments

Credit Card Repayment Calculator Excel: Months & Interest

Calculator No. 01-30190 · Updated · Formula and assumptions shown below

Months to repay 47
Total interest
$2,050.00
= Monthly payment × months to repay − card balance
Card balance
$5,000
Input
Interest rate (APR)
18 %
Input
You enter
Card balance ($), Interest rate (APR) (%), Monthly payment ($)
You get
Months to repay, Total interest ($)
Rounding
0 dp · 2 dp

Estimate for education, not financial advice. The result follows from the numbers you enter and the formula shown. It is not a quote or an offer, and it does not include fees, taxes or insurance unless the calculator asks for them. Ask your lender for the exact figures.

This calculator works out how long it takes to repay a credit card balance at a fixed monthly payment, and how much interest you pay along the way. Enter your card balance, the APR, and the monthly payment you plan to make, and you get back the number of months until the balance reaches zero and the total interest cost. The same math can be rebuilt in Excel with one formula, and this page shows exactly how.

Formula

With a fixed APR and a level monthly payment, the number of months needed to clear a balance is:

n = ceil( −ln(1 − r·P / M) / ln(1 + r) )

  • P — the card balance in dollars (the amount you owe now)
  • r — the monthly interest rate as a decimal, equal to APR / 1200 (an 18% APR gives r = 0.015)
  • M — the monthly payment in dollars (must exceed the first month’s interest, or the balance never falls)
  • n — the number of months to repay, rounded up to a whole month

Total interest is simply M × n − P: everything you pay in beyond the starting balance. The expression 1 − r·P/M must stay positive; if the payment is too small to cover the interest, the logarithm is undefined and the calculator shows “Cannot compute” — which is the mathematically honest answer, because the balance grows rather than shrinks.

Worked Example

Use the default values: a balance of $5,000, an APR of 18%, and a $150 monthly payment.

  1. Monthly rate: r = 18 / 1200 = 0.015 (1.5% per month).
  2. Interest share of the payment: r·P / M = 0.015 × 5000 / 150 = 0.5, so 1 − 0.5 = 0.5.
  3. Months: −ln(0.5) / ln(1.015) = 0.6931 / 0.014889 ≈ 46.55, rounded up to 47 months.
  4. Total paid: 150 × 47 = $7,050. Total interest: 7050 − 5000 = $2,050.

So a $5,000 balance at 18% APR takes just under four years to clear at $150 a month, and interest adds about 41% on top of the original debt. Raising the payment changes the outcome sharply: at $250 a month the same balance clears in roughly 24 months with about $900 in interest.

Assumptions

  • The APR is fixed for the whole repayment period; variable-rate cards can change.
  • Interest compounds monthly at APR / 12, and the payment is made once a month on the same day interest is applied.
  • No new charges are added to the card during repayment.
  • Not included: annual fees, late fees, balance-transfer fees, promotional 0% periods, or minimum-payment rules — the lender’s statement shows the real figures.

Building the Same Thing in Excel

Excel can reproduce this calculator in a single cell. With the balance in B1, the APR in B2 (as a percentage, e.g. 18), and the payment in B3, the months-to-repay formula is:

=ROUNDUP(-LN(1-(B2/1200)*B1/B3)/LN(1+B2/1200), 0)

Total interest is then =B3*B4-B1 (assuming the months result sits in B4). Excel’s NPER function does the same job without the logarithm: =ROUNDUP(NPER(B2/12, -B3, B1), 0) — note the negative sign on the payment, because Excel treats cash you pay out as negative. If you prefer a month-by-month view, build an amortization table: column A for the month number, column B for the opening balance, column C for interest (=B2*apr/12), column D for the payment, and column E for the closing balance (=B2+D2-C2), then fill down until the balance hits zero. The table makes it easy to test extra payments: just change one month’s payment and watch the payoff date move.

Reading the Result

The headline number is months, but two derived figures matter just as much. Total interest tells you the true cost of carrying the balance, and the ratio of interest to starting balance shows how much the debt inflates over time. A useful experiment is to run the calculator three times: once at the minimum payment, once at a payment you consider comfortable, and once at that payment plus a fixed extra amount such as $50. The difference in months and interest between the second and third runs is usually the most motivating number on the page, because early payments go mostly to interest while later ones go mostly to principal.

Common Mistakes

  • Using the APR as a monthly rate. 18 entered as 18 instead of 18/12 per month makes the payment look hopeless. Always divide the annual rate by 12.
  • Paying only the minimum. Minimum payments are typically a small percentage of the balance, so they shrink as the balance falls — a level payment clears the card far faster. This calculator assumes a fixed payment, not a percentage-based one.
  • Ignoring new spending. Every charge added during repayment extends the timeline; the formula only holds if the balance you enter is the final balance.
  • Forgetting the rounding direction. The payoff month must round up: 46.55 months means 47 payments, not 46.
  • Assuming the APR is permanent. Many cards have variable rates; a rate change mid-repayment shifts both outputs.

Alternatives to a Spreadsheet

Besides Excel, the same calculation appears in the NPER-style functions of Google Sheets and LibreOffice Calc, in card issuers’ own online payoff tools (the exact minimum-payment formula is on your statement’s disclosure box, which a generic calculator cannot replicate), and in debt-payoff apps that track multiple cards at once. For multiple debts, the spreadsheet approach still works — one row per card — but you must decide the payment order yourself (highest-rate-first or smallest-balance-first are the two common strategies; both are arithmetic choices, not advice). The advantage of building your own is that you see the formula and can trust the inputs.

Frequently Asked Questions

Does Excel have a built-in credit card payoff calculator?

Not a ready-made one, but the NPER function is the engine: NPER(rate/12, -payment, balance) returns the months directly, and ROUNDUP makes it a whole month. Microsoft also publishes loan amortization templates that work for cards if you treat the balance as the loan amount.

What monthly payment clears my card in a set number of months?

Flip the formula around: M = P · r / (1 − (1 + r)^−n). In Excel that is the PMT function: =PMT(apr/12, months, -balance). For example, $5,000 at 18% APR paid off in 12 months needs about $458 a month.

Why does my card’s minimum payment not match the calculator?

Minimum payments are usually a percentage of the current balance plus fees and interest, with a small floor amount, and each issuer sets its own rule. This calculator models a fixed payment instead, which is why the timelines differ.

Is the monthly rate really just APR divided by 12?

For this level-payment model, yes — it is the standard convention for card interest, which compounds monthly. Your statement’s effective rate may differ slightly because of daily balance methods; use the statement figure when precision matters.

Can I model extra payments in Excel?

Yes, most easily with the month-by-month amortization table: add an “extra payment” column and fill it only for the months where you plan to pay more. The payoff row moves up accordingly.

This result is an estimate for planning purposes; your card statement and the lender’s disclosures give the exact payment, rate, and payoff figures.

Related

Formula used
in p | Card balance | $ | 5000 | 1 | 100000000
in apr | Interest rate (APR) | % | 18 | 0.01 | 100
in m | Monthly payment | $ | 150 | 1 | 1000000
out months | Months to repay | - | ceil(round(-ln(1 - (apr / 1200) * p / m) / ln(1 + apr / 1200), 6)) | 0
out int | Total interest | $ | m * months - p | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard loan formula for this calculation, fixed rate and monthly compounding unless stated, rounded as each result states. Not financial advice; no lender, rate or product is recommended. See formulas and assumptions, the disclaimer or report an error.

More in this section

The whole Loan payments section →