# Debt Payoff Calculator — snowball vs avalanche

Source page: https://valem.run/calculators/tools/debt-payoff

The avalanche method — paying the highest interest rate first — always costs less in interest than the snowball method, which pays the smallest balance first; the snowball’s advantage is motivational, and this model prices exactly what that motivation costs.

## How it is calculated

There are two sensible orders to clear debts in. The avalanche pays the highest interest rate first, which is arithmetically optimal. The snowball pays the smallest balance first, which clears individual debts sooner and gives you visible wins. Both pay every minimum and throw the whole surplus at one target.

This model runs both simulations on your debts at once, month by month: it charges each balance its monthly interest, takes the minimums, and puts everything left on the current target until it clears. That is not something you can write in closed form — the allocation each month depends on where the balances landed the month before — so it is a real simulation, and you can read the whole schedule.

The useful output is the difference. On the sample debts, avalanche and snowball both finish in 23 months, but the snowball costs 112.56 more in interest. That is the honest way to frame the choice: the snowball is not wrong, it just has a price, and now you know what it is before choosing it.

## Worked example

With Total you can pay each month of 600, this model computes Months to debt free of 23.

## Inputs

| Name | Label | Type |
| --- | --- | --- |
| `debts` | Your debts | array |
| `monthlyBudget` | Total you can pay each month | number |
| `strategy` | Which debt gets the extra money | string |

## What this page claims

The Valem engine reproduces this model's formula through 3 self-test cases. That shows internal consistency, not that the formula matches current law; the cited sources are the evidence for that. Estimate, not tax advice.

## For agents

- Model manifest (formula, constants, test vectors): https://valem.run/calculators/tools/debt-payoff.json
- Compute by URL: https://valem.run/calculators/tools/debt-payoff.json
- MCP: https://valem.run/mcp/calculators (call `calculate` with calculator `tools/debt-payoff`)
