Home / Articles / Debt, credit and taxes
Article · 2026-11-18
Pay off debt or invest: where each dollar earns more
You have money left over this month and a debt still open: pay it off faster or invest? The answer depends on neither courage nor luck, but on a comparison of two rates: the yearly cost of the debt and the net return on the investment. This article runs that math in four scenarios, from a cheap loan to a card revolving balance.
We follow a fictitious case, Carla, with a fixed monthly leftover. Each chart is explained in three steps (what it shows, how to read it, what decision to make) and the calculation box redoes the math with the numbers of the chosen scenario. At the end, an honest comparison of a spreadsheet, general finance apps and SimulaCalc, with the Central Bank of Brazil’s rules on overdraft and revolving credit.
Educational simulation. Not investment advice. Results are estimates based on the data you enter and do not replace advice from a qualified professional.
The case: Carla, a leftover of US$ 800 and four kinds of debt
Carla (a fictitious character) ends the month with US$ 800 left over after all her bills. She also has a debt and a question: use the leftover to pay the debt off faster, or invest it and keep paying only the contract installment? The answer rests on one comparison, the cost of the debt against the net return on the investment, and changes a lot with the kind of debt.
For the investment we use an editable example: 12% a year gross and 15% tax on the return, or 10.2% a year net. It is neither a forecast nor a product suggestion, only a number for the math; the calculator uses whatever you type. The four scenarios change only the debt:
- Cheap debt: a loan of US$ 30,000, 48 months, interest of 0.5% a month (6.2% a year).
- Debt at the limit: US$ 20,000, 36 months, interest of 0.85% a month (10.7% a year), slightly above the net return.
- Medium debt: a personal loan of US$ 15,000, 36 months, interest of 2% a month (26.8% a year).
- Costly debt: a card balance of US$ 6,000 turned into 12 installments at 10% a month (213.8% a year), the typical cost of staying in revolving credit.
Pick the scenario below: the summary, all charts and the calculation box update. The numbers are fictitious and fixed, to demonstrate the method. In every scenario the monthly leftover is the same and the contract payment is fixed, computed with the standard amortization table (Price).
The golden rule: compare two rates
Paying off a debt is, in money terms, the same as earning the debt’s rate: every dollar that stops accruing interest for the lender is a dollar you will not pay later. The difference is that this “return” is not taxed and carries no market risk. An investment earns an uncertain rate and gives part of it to tax. The honest comparison is between the effective yearly cost of the debt and the net yearly return on the investment.
Monthly rates mislead. Interest of 8% a month is not 96% a year; it is (1 + 8%)12 − 1 = 151.8% a year, because each month’s interest is charged on a balance that already includes the earlier interest. For the investment, net return is gross × (1 − tax): 12% with 15% tax gives 10.2%. If the debt costs more than that, paying off ends ahead; if it costs less, investing ends ahead. The tie point, the break-even, is the debt’s yearly rate (net) or that rate ÷ (1 − tax) (gross).
Both paths use the same money. In the “pay off” path the leftover is added to the payment and all goes to the debt; once it reaches zero, the contract payment disappears and the whole cash flow is invested. In the “invest” path Carla pays only the installment and invests the leftover every month. What is compared is net worth, the invested money minus what is still owed, at the end of the contract term. The debt rate should be the total effective cost, including insurance and fees, not just the advertised interest.
Chart 1: net worth in the two paths
What it shows. Carla’s net worth month by month in the chosen scenario: invested money minus the debt balance. The green line is the path of paying off faster; the blue one invests the leftover and pays only the installment. The dashed mark shows the month the debt reaches zero on the green path.
Net worth in the two paths
Invested money minus debt, month by month, in the chosen scenario. Green: leftover and payment go to the debt until it is cleared. Blue: payment on the debt and leftover invested.
Chart generated with SimulaCalc. Make your own in the calculator: Pay off debt or invest.
How to read it. Both lines start at the same point, the debt balance as a negative number, because in month zero the money only changes place. The distance between them in the last month is the advantage of one path over the other, in currency. After the “debt cleared” mark, the green line steepens: the whole payment, once handed to the lender, starts to earn.
What decision to make. Look at which line ends higher and at how large the gap is compared with the balance. When it is small, as in the “at the limit” scenario, the result depends on things the math cannot see: the real return, the real tax, liquidity. When it is large, as in the “medium” and “costly” scenarios, the assumption stops mattering.
Chart 2: debt cost against net return
What it shows. The bars are the yearly cost of each debt in the four scenarios; the horizontal line is the net return of the example (10.2% a year). The chosen scenario is highlighted. The scale is logarithmic, with each mark worth ten times the previous one, because the revolving balance at 10% a month costs 213.8% a year and would squash the other bars on a common scale.
Annual cost of the debt against the net return
Logarithmic scale: each mark is ten times the previous one. Bar: yearly cost of the debt. Line: net return in the example. The chosen scenario is highlighted.
Chart generated with SimulaCalc. Make your own in the calculator: Overdraft and revolving credit cost.
How to read it. A bar below the line: the debt costs less than the investment earns, and investing tends to end ahead. A bar above: the debt costs more, and paying off ends ahead. What matters is the distance between bar and line, not the absolute value. On a logarithmic scale, a bar two marks above the line costs a hundred times more.
What decision to make. Always convert monthly interest into yearly before comparing and use the net return, not the gross one. On revolving credit, each dollar paid off is like earning 213.8% in a year; no ordinary return comes close. On cheap debt the opposite holds: money earns more outside the contract than inside it.
Chart 3: debt and investment in each path
What it shows. The same two paths, now opened up: solid lines are invested money and dashed lines are the debt balance. Green is the paying-off path; blue is the investing path.
Debt and investments in each path
Solid lines: invested money. Dashed lines: debt balance. Once the debt reaches zero in the “pay off” path, the freed payment is invested too.
Chart generated with SimulaCalc. Make your own in the calculator: Pay off debt or invest.
How to read it. On the green path, the debt falls fast to zero and the investment only starts to grow after that. On the blue path, the investment grows from month one, but the debt falls slowly, at the contract’s pace, until the end of the term. The net worth in chart 1 is the distance between the solid and the dashed line of each color.
What decision to make. The chart shows what the net-worth math does not: liquidity. On the blue path the money is invested and available; on the green path it is committed to the debt until it reaches zero. If an emergency could demand cash before then, that difference weighs, and it weighs outside the math. For costly debt, the cost gap usually outweighs that comfort; for cheap debt, it does not.
Chart 4: how much the investment must earn to break even
What it shows. The final difference (net worth of paying off minus that of investing) for gross returns from 0% to 40% a year, in the chosen scenario. The marked point is the example return (12%); the vertical dashed line marks the break-even, where the difference is zero.
How much the investment must earn to break even
Final difference (pay off minus invest) by gross yearly return. Above zero, paying off wins; below, investing wins.
Chart generated with SimulaCalc. Make your own in the calculator: Pay off debt or invest.
How to read it. Above zero, paying off wins; below, investing wins. The line falls as the return rises, because higher returns favor investing. Break-even is the debt’s effective rate ÷ (1 − tax): for the medium debt, 31.6% gross a year; at the limit, 12.6%; for the cheap one, 7.3%; for revolving credit, 251.6%, off the chart.
What decision to make. Ask yourself how firmly you expect a return above break-even, year after year, and at what risk. If break-even is far from what you expect to earn, the math settles it. If it is close, as in the “at the limit” scenario, the result changes with a small shift in rates, and factors outside the math decide.
The four scenarios side by side
The table sums up what the charts show. Terms differ between scenarios, so compare, in each row, the sign and size of the difference relative to the balance, not the absolute values across rows.
The four scenarios side by side
Leftover of US$ 800 a month, investment at 12% a year gross with 15% tax (10.2% net). Fictitious values, calculated as in the calculator.
| Scenario | Balance and term | Interest a month (a year) | Final net worth: pay off | Final net worth: invest | Winner |
|---|---|---|---|---|---|
| Cheap debt | US$ 30,000 · 48 months | 0.5% (6.2%) | US$ 45,113 | US$ 46,737 | investing, by US$ 1,624 |
| Debt at the limit | US$ 20,000 · 36 months | 0.85% (10.7%) | US$ 33,398 | US$ 33,300 | paying off, by US$ 98 |
| Medium debt | US$ 15,000 · 36 months | 2% (26.8%) | US$ 36,139 | US$ 33,300 | paying off, by US$ 2,839 |
| Card revolving balance | US$ 6,000 · 12 months | 10% (213.8%) | US$ 12,687 | US$ 10,041 | paying off, by US$ 2,646 |
The sign rule holds in all four rows: when the debt’s yearly cost is above the net return (10.2%), paying off wins; when it is below, investing wins. In the “at the limit” scenario the advantage of paying off is only US$ 98 over 36 months, practically a tie: there, the risk of the return and liquidity count, and the math does not measure them.
The calculation step by step, with the numbers of the chosen scenario
The box below redoes the math for the chosen scenario. It is the same script as the “Pay off debt or invest” calculator and what a spreadsheet requires.
The calculation step by step, with the numbers of the chosen scenario
It is the same script a spreadsheet requires and SimulaCalc does on its own.
When the lender offers a discount to settle: the implied rate
If the offer is a lump-sum payment at a discount, the question changes: what does the money you pay now earn, per month, for no longer having to pay the future installments? That is the offer’s implied rate, the internal rate of return (IRR) of the cash flow: a sum goes out today and the installments stop going out. The offer pays off if the implied rate is higher than the net return on the money (or the cost of the loan that would fund the payoff).
Example: a debt of US$ 20,000 in 36 installments of US$ 784.66, interest of 2% a month. Paying US$ 20,000 in a lump sum with no discount, the implied rate is the debt’s own rate: 2.00% a month (26.8% a year). With a 10% discount (US$ 18,000), it rises to 2.67% a month (37.2% a year). With 20% (US$ 16,000), it reaches 3.47% a month (50.5% a year). The example’s net return, 10.2% a year, is 0.81% a month; it pays off in all three cases. The maximum lump sum that still pays off is the present value of the installments at that rate: US$ 24,405, more than the balance, because the debt costs far more than the money earns.
Before accepting, ask for the offer in writing, confirm that the discount applies to future interest (Brazil’s Consumer Defense Code provides for a proportional reduction of interest on early settlement, art. 52, § 2; check the current text at planalto.gov.br) and check for fines and fees. The “Is settling the debt at a discount worth it?” calculator does this math with the offer you type.
Overdraft and revolving credit: what the Central Bank limits
Two personal debts have their own rules in Brazil. On the overdraft (cheque especial), CMN Resolution 4765/2019 (art. 3) caps interest on the amount used at 8% a month, which is 151.8% a year. The same text provided for a fee on making the limit available (art. 2), which appears as revoked on the Central Bank page. Figures and rules checked on 2026-11-18; confirm the current rule with your institution.
On card revolving credit, CMN Resolution 4549/2017 says an unpaid statement balance can be financed through revolving credit only until the due date of the next statement; after that, only through an installment line on terms more advantageous to the customer. Since January 2024 (Law 14690/2023, regulated by the CMN), the total interest and charges on revolving credit and statement installments cannot exceed the original debt, or 100%.
The 100% cap limits the total, not the monthly rate. In the “costly debt” scenario, total interest if the contract is kept adds up to US$ 4,567, 76% of the US$ 6,000 balance: under the cap, yet still an enormous cost. For your case, the “True cost of overdraft and revolving credit” calculator shows how much the debt grows in N months without paying and how long it takes to clear with a fixed payment. Outside Brazil the rules differ: check those of your country.
Spreadsheet, general app or SimulaCalc: how each one helps
The same math can be done in three ways. The table compares them honestly: the spreadsheet is flexible and familiar, but you must build and check every formula; general finance apps and software help with day-to-day tracking but in general do not compare the two paths; SimulaCalc does the comparison ready-made, with the calculation box in view, and does not replace expense tracking or reading the contract.
Three ways to run the same numbers
Compares the spreadsheet, the category of general personal-finance apps and software (without naming products) and SimulaCalc. For third parties the text describes what usually happens: check the documentation of your version.
| Criterion | Spreadsheet (Excel, Google Sheets) | General finance app or software (category) | SimulaCalc |
|---|---|---|---|
| Building the math | You build the month-by-month table with the payment (PMT function) and the balance and return formulas (see the step by step). Flexible, but a bad cell reference goes unnoticed. | In general, they show the payment and balance of a debt or the return on an investment; comparing the two paths usually means building the math separately. Check the features of your version. | Calculates both paths month by month from balance, interest, term (or payment), available sum or monthly extra, return and tax, and shows the calculation box. |
| Net return and tax | You type the tax rate and apply (1 − tax) yourself. | Varies by product. In general, the return is entered already net or tax follows the product’s own rules: check which. | Optional tax field on the return; break-even appears net and gross. It does not know your tax situation: you type it. |
| Break-even rate | Possible with Goal Seek or a hand-built sensitivity table. | In general, not calculated. Check whether debt cost and return are compared. | Shows the break-even rate and the month the winner pulls ahead. |
| Settling at a discount (implied rate) | Possible with the IRR function over a cash flow you build. | Varies by product. In general, loan simulators handle amortization, not the implied rate of an offer. | A dedicated calculator computes the offer’s implied rate and the maximum lump sum that still pays off. |
| Charts and scenarios | Manual line chart; each scenario means duplicating the table. | In general, ready-made charts for balance or goals, without the two paths side by side. | Charts of net worth, debt and investment and rates; change the scenario and everything updates. |
| Cost and setup | Usually already installed; the cost is the time of whoever maintains the model. | Varies: free, paid plan or bank-integrated. May require sign-up and linking accounts. | In the browser, no installation and no sign-up; free. |
| Best for | People who already track finances in a spreadsheet and want to adjust assumptions and formulas. | Tracking spending, balances and goals day to day, with data imported from accounts. | Deciding between paying off and investing with your own numbers, understanding the math and simulating scenarios. It does not recommend products or replace reading the contract. |
Step by step in each approach
The blocks below repeat the “medium debt” scenario analysis (balance of US$ 15,000, 2% a month, 36 months, US$ 800 a month) in each approach. The expected result is US$ 36,139 paying off and US$ 33,300 investing, a difference of US$ 2,839 in favor of paying off.
Step by step in each approach
The same analysis (pay off or invest) in each approach. The first block opens by default.
Spreadsheet (Excel, Google Sheets)
- Type the assumptions: balance in B2, monthly debt interest in B3 (e.g., 2%), term in B4, monthly leftover in B5, gross yearly return in B6 and tax on the return in B7.
- Net yearly return, in B8:
=B6*(1-B7). Monthly, in B9:=(1+B8)^(1/12)-1. Payment, in B10:=-PMT(B3,B4,B2). - Build the table from row 13, with month 0 in row 13: A = month, B = debt in the “pay off” path, C = invested in “pay off”, D = debt in “invest”, E = invested in “invest”. Row 13: B13
=B2, C13=0, D13=B2, E13=0. - Row 14: B14
=B13*(1+$B$3)-MIN($B$10+$B$5,B13*(1+$B$3)); C14=C13*(1+$B$9)+($B$10+$B$5-MIN($B$10+$B$5,B13*(1+$B$3))); D14=D13*(1+$B$3)-MIN($B$10,D13*(1+$B$3)); E14=E13*(1+$B$9)+($B$10+$B$5-MIN($B$10,D13*(1+$B$3))). Copy down to the month of the term. - Net worth: F =
=C14-B14(pay off), G ==E14-D14(invest), H ==F14-G14(difference). A line chart of F and G reproduces the first chart of the article. - Gross break-even, in B11:
=((1+B3)^12-1)/(1-B7). Function names and separators (semicolon or comma) depend on the language and regional settings of your program.
Python (optional)
The same calculation in Python (standard library). The example is the article’s “medium debt” scenario.
def caminhos(saldo, i, n, extra, g, imposto):
liq = g * (1 - imposto) # rendimento líquido ao ano
r = (1 + liq) ** (1 / 12) - 1 # rendimento líquido ao mês
p = saldo * i / (1 - (1 + i) ** -n) # parcela fixa
caixa = p + extra
dp, ip, di, ii = saldo, 0.0, saldo, 0.0 # dívida e investido: pagar | investir
for _ in range(n):
v = dp * (1 + i); pg = min(caixa, v); dp = v - pg; ip = ip * (1 + r) + (caixa - pg)
v = di * (1 + i); pg = min(p, v); di = v - pg; ii = ii * (1 + r) + (caixa - pg)
return p, ip - dp, ii - di # parcela, patrimônio pagar, patrimônio investir
print(caminhos(15000, 0.02, 36, 800, 0.12, 0.15))General finance app or software
The steps vary with the product; those below hold for the category in general. Check your app’s documentation.
- Register the debt with balance, interest and term (or payment) to get the payment and the schedule.
- Register the investment with the expected return and, if the field exists, tax.
- In general, the app shows each item separately: add up the net worth (invested minus debt) of each path by hand.
- Repeat with the leftover going to the debt and going to the investment, and compare the result at the same month.
SimulaCalc
- Open the “Pay off debt or invest” calculator and, under “What do you want to compare”, choose “I can set aside an extra amount every month”.
- Fill in the balance, the debt interest (choose “per month” under “Debt rate typed”), the months left and the extra per month. For the article’s “medium debt” scenario: US$ 15,000, 2% a month, 36 months and US$ 800 a month.
- Under “The investment”, type the gross yearly return (12%) and the tax on the return (15%). The calculator suggests no rates: use your own.
- Read the result: final net worth of each path, difference, break-even rate, the month the winner pulls ahead and the month the debt reaches zero. The charts and the month-by-month table follow below.
- If the lender offered a discount to settle, use “Is settling the debt at a discount worth it?”; for the cost of an overdraft or card balance, use “True cost of overdraft and revolving credit”.
When to use each approach and common mistakes
When to use each one. A spreadsheet, for people who already keep their budget in one and want to adjust assumptions; a general app, to track spending and goals; SimulaCalc, to decide between paying off and investing with your own numbers and see where the answer comes from. They complement each other: use the app to find out how much is left over and the calculator to decide what to do with it.
- Comparing a monthly rate with a yearly one. 1% a month is not “less” than 10% a year: it is 12.7% a year. Convert before comparing.
- Using the gross return. What enters the comparison is the return after tax, and the tax that counts is the one in your case.
- Ignoring the debt’s insurance and fees. The effective cost is higher than the advertised rate; use it.
- Treating the return as certain. The math assumes the typed return is guaranteed; the real one can be lower, zero or negative.
- Forgetting liquidity. Money used to pay off does not come back; invested money can be redeemed. Emergency fund and risk tolerance are your decisions, outside the math.
- Mixing debts. With more than one debt, the math holds for each; the costliest tends to be the first to compare. The “Plan to pay off several debts” calculator ranks several.
- Forgetting the settlement discount. It changes the implied rate and can flip the answer, as in the example above.
Formulas and assumptions
- Yearly debt rate: (1 + i)12 − 1, with i the monthly rate.
- Net return: gross × (1 − tax), yearly; monthly, (1 + net)1/12 − 1.
- Fixed payment: P = S × i ÷ (1 − (1 + i)−N), with S the balance and N the months left.
- “Pay off” path: each month, balance × (1 + i) − payment, with payment = installment + leftover (capped at what is owed); what is left of the payment is invested, and the invested sum grows at the monthly return.
- “Invest” path: the balance falls with the installment; the leftover is invested every month. At the end, E × ((1 + r)N − 1) ÷ r.
- Net worth: invested − debt. Difference: net worth of “pay off” − net worth of “invest”.
- Break-even: the debt’s yearly rate (net) or ÷ (1 − tax) (gross).
- Implied rate of the offer: IRR of the flow [−payment today, avoided installment each month].
- Assumptions: certain and constant return; installments and leftover paid at month end; no inflation (it affects both paths); tax as a single effective rate; risk, liquidity and emergency fund outside the math; insurance and fees count only if folded into the interest.
Frequently asked questions
Is it better to pay off the debt or invest?
Compare two rates: the yearly cost of the debt and the net return on the investment. Paying off a debt at 2% a month is like earning 26.8% a year, tax-free and risk-free; investing only ends ahead if the net return beats that. In the article’s example (10.2% net), paying off wins with the debt at 2% a month; investing wins with the loan at 0.5% a month. It is an educational calculation: risk and liquidity are left out.
How do I convert a monthly rate into a yearly rate?
Raise (1 + monthly rate) to the 12th power and subtract 1. Interest of 8% a month is 151.8% a year, not 96%, because each month’s interest is charged on a balance that already includes the earlier interest. To compare with an investment, always use the effective yearly rate and the net return. Many statements quote an APR, which is usually the monthly rate times 12.
What is the interest limit on overdraft in Brazil?
Under Brazilian CMN Resolution 4765/2019, art. 3, interest on the used amount of an overdraft (cheque especial) is capped at 8% a month (text checked on the Central Bank of Brazil website on 2026-11-18). Check the current rule with your institution, since rules change. 8% a month is 151.8% a year, far above any common return.
Is there an interest cap on card revolving credit in Brazil?
Since January 2024, the total of interest and charges on revolving credit and on installment financing of the statement cannot exceed the original debt (100%), a rule of Law 14690/2023 regulated by the National Monetary Council. The cap limits the total, not the monthly rate: a debt at 10% a month can double in value before the rule stops the interest. It only covers operations made after the period set by the law.
What about an emergency fund?
It is outside the math. Money used to pay off a debt does not come back if you need it, and invested money can be redeemed, with the caveats of each product. That is why the calculator treats liquidity and risk as your decision; it only compares cost and return.
Can I split the leftover between paying off and investing?
Yes. The math compares the two extremes; a split falls between them. If the debt costs more than the net return, each dollar on the debt earns more than each dollar invested, and the comparison holds for each dollar of the leftover. You can run the calculator with the part you plan to give to each side.
How do I know if an offer to settle at a discount is worth it?
Compute the offer’s implied rate: the return from paying a sum today to stop paying the future installments (IRR). If it is higher than the net return on the money (or the cost of the loan that would fund the payoff), the offer pays off. In the article’s example, paying US$ 18,000 on a US$ 20,000 debt with 36 installments earns 2.67% a month, 37.2% a year.
References
- Central Bank of Brazil. CMN Resolution 4765/2019 (overdraft: interest capped at 8% a month, art. 3; in Portuguese).
- Central Bank of Brazil. CMN Resolution 4549/2017, as amended by CMN Resolution 5112/2023 (card revolving credit and statement installments; in Portuguese).
- Central Bank of Brazil. CMN Vote 67/2023 (cap of 100% of the original debt on interest and charges, Law 14690/2023, art. 28; in Portuguese).
- Ministry of Finance (Brazil). Credit simplification and the card interest cap (in Portuguese).
- Brealey, R.; Myers, S.; Allen, F. Principles of Corporate Finance. McGraw-Hill (time value of money and opportunity cost).
- Assaf Neto, A. Matemática Financeira e suas Aplicações. Atlas (compound interest, effective rate and internal rate of return; in Portuguese).
Continue in the calculators
When you have your own debt’s numbers, use the calculators below.
Next step
Take this page’s results to another calculator with the fields already filled in.