How to Calculate Whether a Side Income Should Go to Debt or Investment First

You’ve got an extra $300 a month. Maybe it’s from a weekend side gig, a small raise, or a spending cut that finally stuck. The question sits there, quiet but persistent: should this money go toward paying down debt faster, or should it flow into an investment account? The answer isn’t a slogan. It’s a number. And once you learn to calculate that number, you can make the decision with calm clarity, knowing exactly what each path costs or earns over your specific time horizon.

This question sits at the intersection of compound interest, debt drag, and savings rate architecture. It touches the silent erosion of inflation and the quiet weight of fees. For someone building a durable financial life, the choice between debt repayment and investing is not about emotion—it is about arithmetic. And the arithmetic often reveals a gap that, over decades, compounds into tens of thousands of dollars.

The Core Comparison: After-Tax Return vs. After-Tax Cost

At its heart, the decision is a comparison of two rates. On one side, you have the after-tax return you can reasonably expect from investing the extra money. On the other, you have the after-tax cost of carrying the debt. If the investment return is higher, investing tends to win. If the debt cost is higher, paying down debt tends to win. But both numbers need adjustment for taxes, risk, and your personal time horizon.

Let’s make this concrete. Suppose you have a 32-year-old reader named Elena. She earns $68,000 a year, is in the 22% federal tax bracket, and lives in a state with a 5% income tax. She has a side income that nets her an extra $300 per month after taxes. She carries a $12,000 car loan at 6.5% interest, with three years remaining. She also has access to a Roth IRA, where investments grow tax-free. Her alternative is to invest the $300 monthly in a low-cost total stock market index fund inside that Roth IRA.

Elena’s debt cost is straightforward. The car loan interest is 6.5%, but since it is not tax-deductible, the after-tax cost is also 6.5%. Her investment return is less certain, but we can use a conservative long-term nominal return estimate of 7% for a diversified stock portfolio. Inside a Roth IRA, that 7% is entirely after-tax. On raw numbers, 7% beats 6.5%. But raw numbers are not the whole story.

Person calculating finances with a calculator and notebook

Adjusting for Risk: The Guaranteed Return of Debt Paydown

When you pay down a 6.5% loan, you earn a guaranteed, risk-free 6.5% return on that money. There is no volatility, no sequence-of-returns risk, no sleepless nights watching the market dip. In contrast, a 7% expected stock return is an average over decades, with years that might drop 20% or gain 30%. For a short time horizon—say, under five years—the guaranteed return often wins, even if it is slightly lower on paper.

Elena’s car loan has three years left. If she puts the $300 monthly toward the loan, she will pay it off faster and save a precise amount of interest. We can calculate that number. A $12,000 loan at 6.5% with a 36-month term has a monthly payment of about $367. If she adds $300 each month, the loan is paid off in roughly 20 months instead of 36. The total interest saved is around $650. That $650 is a guaranteed, after-tax return. It is also a return that frees up $367 a month 16 months earlier—money that can then be invested.

If Elena invests the $300 monthly in her Roth IRA instead, she might earn 7% annually over those same 20 months. The future value of $300 monthly for 20 months at 7% is about $6,400. But that is not a guaranteed $6,400; it is an expected value with a wide range of possible outcomes. And she still carries the car loan, paying $367 each month for the full 36 months.

Building a Simple Decision Framework

To make this decision repeatable, you can build a personal framework based on three factors: the after-tax interest rate on the debt, the expected after-tax return on the investment, and the time horizon. Here is a step-by-step approach.

Step 1: Calculate the True After-Tax Cost of the Debt

Not all debt is equal. Mortgage interest may be tax-deductible if you itemize, which lowers the effective rate. Credit card interest is never deductible. Student loan interest may be partially deductible depending on income. For Elena’s car loan, the after-tax cost is simply the stated rate: 6.5%. For a mortgage at 6.5% with full deductibility in a 22% bracket, the after-tax cost drops to about 5.07%. That changes the comparison significantly.

Write down the debt’s stated interest rate. Then ask: is this interest tax-deductible? If yes, multiply the rate by (1 – your marginal tax rate). That is your after-tax cost. If no, the stated rate is your after-tax cost.

Step 2: Estimate a Reasonable After-Tax Investment Return

For a diversified stock portfolio, a long-term nominal return of 7% is a common baseline. But that is before taxes. If you invest in a taxable brokerage account, you must account for tax drag from dividends and capital gains. A 7% pre-tax return might drop to 6% or lower after taxes, depending on your bracket and investment efficiency. In a Roth IRA, the 7% is fully after-tax. In a traditional 401(k) or IRA, the 7% is pre-tax, but you will pay taxes on withdrawal—so the effective after-tax return depends on your future tax rate.

For a conservative comparison, use the after-tax expected return of a low-cost index fund in the account you would actually use. If you are comparing to a guaranteed debt paydown, you might also consider the after-tax return of a risk-free asset like a Treasury bond, which might yield 4-5% before taxes. This gives you a more apples-to-apples risk comparison.

Step 3: Compare the Numbers Over Your Specific Time Horizon

If the debt is short-term (under 3-5 years), the guaranteed return of paying it down often outweighs the uncertain return of investing. If the debt is long-term (like a 30-year mortgage at a low rate), investing tends to win because compound growth has decades to work. But the crossover point is personal. For Elena, with a 3-year car loan at 6.5% and a Roth IRA, the math slightly favors investing—but the guarantee of debt paydown might feel better. If her car loan were 8%, debt paydown would clearly win. If it were 4%, investing would clearly win.

Person reviewing financial documents and using a calculator

What a Ten-Dollar Weekly Bump Actually Does to Your Retirement Number

Sometimes the side income is small—just $10 or $20 a week. It’s easy to dismiss these amounts as not worth the mental energy. But small, consistent flows compound into surprisingly large sums. In a previous article, we looked at what a ten-dollar weekly bump actually does to your retirement number. The short version: $10 a week invested at 7% for 30 years grows to over $50,000. That is not a rounding error. It is a semester of college, a year of retirement, or a down payment on a modest home.

When you apply that same lens to the debt-versus-investing question, the stakes become clear. If Elena uses her $300 monthly side income to pay off a 6.5% car loan early, she saves $650 in interest and frees up $367 a month 16 months sooner. If she then invests that $367 for the remaining 20 months of the original loan term, plus the freed-up $300 for the same period, she ends up with about $13,800 in her Roth IRA after 36 months (assuming 7% growth). If she instead invested the $300 from day one for the full 36 months, she would have about $12,000. The difference is $1,800—not life-changing, but real. And that difference compounds for decades.

The Silent Erosion of Fees and Inflation

No calculation is complete without acknowledging the quiet drag of fees and inflation. A 1% annual fee on a $100,000 portfolio might sound small, but over 30 years it can consume over $30,000 in returns. Similarly, inflation at 3% annually cuts the purchasing power of your future dollars nearly in half over 25 years. When you compare a 6.5% debt cost to a 7% investment return, the spread is thin. A small fee or a slightly higher inflation rate can flip the decision.

For Elena, investing in a low-cost index fund with a 0.04% expense ratio keeps the fee drag minimal. But if she were considering a managed fund with a 1.5% fee, the after-fee expected return might drop to 5.5%, making debt paydown the clear winner. Always check the expense ratio of any fund you consider. And remember that paying down debt is a guaranteed, tax-free, fee-free return.

When the Math Is Close, Consider Cash Flow and Flexibility

Sometimes the numbers are within a percentage point of each other. In those cases, secondary factors can tip the scale. Paying off a car loan frees up monthly cash flow, which reduces stress and increases your ability to handle unexpected expenses. That has a real, if hard-to-quantify, value. On the other hand, money invested in a Roth IRA can be withdrawn without penalty in certain circumstances, offering a different kind of flexibility. And if your employer offers a 401(k) match, that is an immediate, guaranteed return that almost always beats debt paydown.

Consider a 35-year-old named Marcus. He has $5,000 in credit card debt at 22% interest and a side gig bringing in $400 a month. He also has access to a 401(k) with a 50% match on the first 6% of his $70,000 salary. The math is clear: the 22% debt cost dwarfs any reasonable investment return, so he should direct every available dollar to the credit card. But he should also contribute enough to get the full 401(k) match—because a 50% immediate return beats even 22% debt. Once the credit card is gone, he can redirect the full $400 to his 401(k) or Roth IRA.

Building a Personal Decision Table

To make this process your own, create a simple table for each debt and each investment option. List the after-tax interest rate for the debt and the after-tax expected return for the investment. Then note the time horizon and any special factors like employer matches or early withdrawal penalties. The table will often make the choice obvious.

For Elena:

  • Debt: Car loan, 6.5% after-tax, 3 years remaining, no prepayment penalty.
  • Investment: Roth IRA, 7% expected nominal return, 30-year horizon, tax-free growth.
  • Decision: Slight edge to investing, but paying off the loan is reasonable if she values the guaranteed return and cash flow flexibility.

For Marcus:

  • Debt: Credit card, 22% after-tax, revolving.
  • Investment: 401(k) with 50% match, immediate 50% return, plus market growth.
  • Decision: Get the full match, then throw every extra dollar at the credit card until it is gone.

Person writing in a notebook with financial charts and a laptop nearby

The Long View: How Small Decisions Compound

One of the quietest truths in personal finance is that small, boring decisions—made consistently over time—create the largest outcomes. Choosing to direct a side income of $300 a month to the mathematically superior option might feel like a rounding error today. But over 20 years, the difference between a 6.5% guaranteed return and a 7% market return on $300 monthly contributions is about $12,000. That is not a fortune, but it is a year of modest retirement spending. And if you make similar optimizations across multiple debts, multiple income streams, and multiple decades, the cumulative effect can be six figures or more.

The key is to avoid treating this as a one-time emotional decision. Build a simple spreadsheet. Update it once a year. Let the numbers guide you. And when the math is close, give yourself permission to choose the path that brings you the most peace—because a financial plan you can stick with is worth more than a theoretically optimal one you abandon.

Frequently Asked Questions

Should I always pay off high-interest debt before investing?

In almost all cases, yes. If the after-tax interest rate on your debt is above 8-10%, paying it off is a guaranteed, risk-free return that is hard to beat in the market. The exception is capturing an employer 401(k) match, which can offer an immediate 50% or 100% return. Always get the full match first, then attack high-interest debt.

How do I account for inflation in this decision?

Inflation affects both sides of the equation. A 6.5% nominal debt cost is lower in real terms if inflation is 3%, but the same inflation also reduces the real return of your investments. For most comparisons, using nominal rates for both debt and investment returns is sufficient, as long as you are consistent. If you want to be precise, subtract your expected inflation rate from both numbers to get real rates, then compare.

What if I have multiple debts with different interest rates?

List them from highest after-tax rate to lowest. Direct extra payments to the highest-rate debt first (the avalanche method) while making minimum payments on the others. Once the highest-rate debt is gone, move to the next. At some point, the remaining debt may have a low enough rate that investing becomes the better choice. That crossover point is personal, but for many people it is around 5-6% after-tax.

Does the type of investment account change the math?

Yes. A Roth IRA offers tax-free growth, so the full expected return is yours. A traditional 401(k) or IRA gives you a tax break now but taxes withdrawals later, so the effective after-tax return depends on your future tax bracket. A taxable brokerage account adds annual tax drag from dividends and capital gains. Always use the after-tax expected return for the specific account you would use.

This article is for educational purposes and does not constitute financial advice. Consider consulting a qualified professional for your specific situation.