Student loans, credit cards, and saving for retirement
Carrying student loans and credit card debt while trying to save for retirement feels like being pulled three directions at once. The good news: it isn’t an either-or choice. There’s a clear priority order that knocks out the expensive debt, captures free retirement money, and still builds wealth — and this guide walks through it.
1. The three-way pull — and why it’s not either-or
If you’re carrying student loans and credit card debt while trying to save for retirement, you already know the monthly tug-of-war: every extra dollar feels like it should go three places at once, and putting it anywhere feels like neglecting the other two. It’s exhausting, and it’s the reason so many people in this situation make minimal progress on everything.
The numbers say this is a huge and under-discussed problem. More than 42 million Americans carry federal student loan debt, millions of them also juggling credit card balances. And 84% of borrowers say their student loans directly reduce how much they can save for retirement, according to a survey by TIAA and the MIT AgeLab. The retirement cost is real: insufficient retirement savings is one of the top reasons people report not feeling financially comfortable.
Here’s the reframe that changes everything: this is not an either-or choice, and treating it like one is the actual mistake. The worst thing you can do is split your attention equally across all three and make minimum progress on each. The best thing you can do is follow a priority order — a sequence that knocks out the most expensive debt first, captures the free retirement money you’re leaving on the table, and still builds long-term wealth, all at the same time.
The priority order isn’t about willpower or sacrifice. It’s about math: putting each dollar where it earns or saves the most, in the right sequence. A dollar that captures an employer match earns an instant 100% return. A dollar that pays off a 25% credit card “earns” a guaranteed 25%. A dollar that pays down a 6% student loan saves 6%. A dollar invested might earn 7%. Rank those returns, and the priority order writes itself. This guide lays it out step by step, with a calculator to run your own numbers and a federal section on Public Service Loan Forgiveness and the TSP match.
The way out of the three-way pull is to stop assigning dollars based on which debt stresses you most and start ranking them by the return each dollar earns. An employer match is an instant ~100% return (you put in a dollar, your employer adds a dollar). Paying off a 25% credit card is a guaranteed 25% return. Paying down a 6% student loan is a guaranteed 6% return. Investing in the market is an expected — not guaranteed — 7% real return over the long run. Sort highest to lowest and you get the priority order: capture the match, kill the credit cards, build a safety buffer, then weigh extra student-loan payments against additional investing. The anxiety says “do everything.” The math says “do it in this order,” and the math wins.
2. The priority order that actually works
Here’s the full sequence, in order. Each step is explained in the sections that follow, but the order itself is the most important thing to take away:
| Priority | Action | Why it ranks here |
|---|---|---|
| 1 | Capture the full employer match | ~100% instant return — the highest return available anywhere |
| 2 | Pay off credit cards (highest rate first) | 22–28% guaranteed return; nothing else comes close |
| 3 | Build a starter emergency fund ($1,000–1 month) | Stops new card debt from forming |
| 4 | Build a full emergency fund (3–6 months) | Protects everything else from setbacks |
| 5 | Weigh extra student-loan payoff vs. more investing | 5–8% guaranteed vs. ~7% expected — closer call (Section 5) |
Two things make this sequence work. First, it front-loads the highest-return moves — the match and the credit cards — so your money is doing its most valuable work immediately. Second, it builds the emergency fund early enough to stop the single most common way people backslide: putting a surprise expense on a credit card and rebuilding the exact balance they just paid off.
Notice what’s not at the top: aggressively paying off low-rate student loans, and aggressively investing beyond the match. Those are good things — but they rank below killing 25% credit card debt and capturing free match money, because the return is lower. Doing them first, while carrying credit card balances, is the most common and most expensive sequencing mistake.
The rest of this guide explains the reasoning behind each step, because understanding why makes the order easier to stick to when the monthly pull tempts you to do something else.
3. Why credit cards always come first
When you carry both credit card debt and student loans, the credit cards come first — almost without exception. The reason starts with the interest rates and goes deeper from there.
The rate gap is enormous. Credit cards charge 22% to 28% APR according to Federal Reserve G.19 data. Federal student loans charge roughly 5% to 8%. Paying off a credit card is a guaranteed return equal to its interest rate — and a guaranteed 25% return is something no investment can reliably match. That alone settles the priority for most people.
But there are four more reasons the gap is even wider than the rates suggest:
- Student loan interest is tax-deductible; credit card interest is not. Under IRS rules, you can deduct up to $2,500 per year in student loan interest as an above-the-line deduction (you don’t have to itemize). Credit card interest gets you nothing. So the effective cost of student loan debt is even lower than its stated rate after the deduction, widening the gap with credit cards further.
- Credit cards have resolution options student loans don’t. Credit card debt can sometimes be addressed through hardship programs or settlement. Federal student loans have income-driven repayment and forgiveness paths but are nearly impossible to discharge in bankruptcy. Different tools apply.
- The credit-score and debt-to-income relief is faster. Paying down credit card balances improves your credit utilization ratio quickly, which can lift your credit score and lower your debt-to-income ratio — benefits that ripple into everything from mortgage eligibility to insurance rates.
- It stops a compounding problem. High-rate credit card balances compound against you fast. Every month you carry a 25% balance, the problem grows at a rate that quickly outpaces what student loans or investments do.
The method for attacking multiple credit cards is the avalanche method: pay the minimum on everything, then throw every extra dollar at the card with the highest interest rate first. Once it’s gone, roll that payment into the next-highest, and so on. This minimizes total interest paid. (Some people prefer the “snowball” method — smallest balance first — for the psychological wins, and if that’s what keeps you going, it’s a reasonable trade. But avalanche saves the most money.)
The bottom line from credit counselors is consistent: get the credit card debt out of the way first. It’s costing you more than anything else, and clearing it makes every subsequent step easier.
A guaranteed 25% return is something no investment can reliably match. Paying off a credit card isn’t just debt reduction — it’s the highest-certainty, highest-return use of a dollar available to almost anyone. That’s why it ranks above investing, above student loans, above everything except free employer-match money.
4. The match exception: free money beats debt payoff
There’s exactly one thing that outranks paying off even high-interest credit card debt: capturing your full employer retirement match.
If your employer matches retirement contributions — say, dollar-for-dollar up to some percentage of your salary — that match is an immediate 100% return. You contribute a dollar, your employer adds a dollar. Nothing else in personal finance reliably doubles your money instantly. Even a 25% credit card, as expensive as it is, can’t compete with a 100% return.
So the rule is: contribute at least enough to capture the full employer match before throwing extra money at any debt. Skipping the match to pay off debt faster means leaving free money — part of your total compensation — permanently on the table. That match money also goes into a tax-advantaged account where it compounds for decades.
This is the one place where saving for retirement jumps ahead of debt payoff, and it’s worth being precise about it: capture the full match, but not more than the match, until your high-interest debt is gone. Contributing beyond the match while carrying 25% credit card balances means you’re effectively earning ~7% (expected, in the market) while paying 25% (guaranteed, on the cards) — a losing trade. Get the free 100%, then pivot the rest to the credit cards.
The reason this trips people up is that retirement saving and debt payoff feel like opposite activities — one is “building,” one is “fixing.” But the match isn’t really saving; it’s claiming compensation you’ve already earned. Leave it unclaimed and you’ve taken a pay cut. For how that match fits your bigger retirement picture, see the how-much-do-I-need cornerstone.
5. Pay off student loans, or invest? The real math
Once the credit cards are gone and the match is captured, you reach the genuinely close call: should extra money go to paying off student loans faster, or to investing more?
Unlike the credit card question, this one doesn’t have a single right answer — because the numbers are close. Federal student loans run about 5.8% on average; the stock market has historically returned about 10% nominally, or 6-7% after inflation. When the expected investment return is higher than the loan rate, investing can build more wealth over time — especially in tax-advantaged accounts.
The math, made concrete. Credible’s analysis shows that putting an extra $100 a month toward student loans for 10 years saves about $3,531 in interest. Investing that same $100 a month at 7% for 10 years grows to about $16,579. In that comparison, investing comes out well ahead. And notably, even splitting the difference — $50 to loans, $50 to investing — still gets you much further than putting the full $100 only toward the loans.
But the decision isn’t purely about the spread, because the two options differ in certainty. Paying off the loan is a guaranteed return equal to the loan’s rate (reduced slightly by the interest deduction) — no risk. Investing is an expected, not guaranteed, return — the market could underperform, especially over shorter horizons.
So the honest framework:
- If your student loan rate is high (say, 7%+), the guaranteed return from paying it off is attractive and the case for aggressive payoff is stronger.
- If your rate is low (say, under 5%), the expected investment return clears it comfortably and investing — particularly in tax-advantaged retirement accounts — usually builds more wealth.
- For most people in the middle, a split is reasonable: pay down the loans steadily while also investing, capturing some guaranteed return and some growth. The $50/$50 example shows a split still dramatically beats loans-only.
Two more factors tilt the decision toward investing: the time value of starting retirement contributions early (every year of compounding you skip is hard to recover), and the tax advantage of retirement accounts, which boosts the effective investment return. The longer your horizon, the more these favor investing over rapid low-rate-loan payoff.
For federal employees, there’s an additional wrinkle that can change this calculation entirely — Public Service Loan Forgiveness, covered in Section 8.
6. Build the wall: the emergency fund that stops the cycle
The step people skip — and the reason they end up back in credit card debt months after paying it off — is the emergency fund.
Here’s the trap. You scrape together every spare dollar, heroically pay off the credit cards, and feel free. Then the car needs a $1,200 repair, or a medical bill arrives, or the water heater dies. With no cash reserve, that expense goes straight back onto the credit card — and you’re rebuilding the exact balance you just eliminated, at 25% interest. This is the single most common way people backslide, and it’s entirely preventable.
The fix is to build an emergency fund as an explicit step in the priority order, not an afterthought. A starter buffer first: even before the credit cards are fully gone, having a small starter fund (often cited as $1,000, or about one month of essential expenses) prevents the smallest surprises from creating new card debt. A full fund once the cards are cleared: after the high-interest debt is paid, build the reserve to 3-6 months of essential expenses. This is the wall that protects everything else — your debt payoff, your retirement saving, your peace of mind — from the next inevitable surprise.
The emergency fund feels unproductive because it earns little (park it in a high-yield savings account or money market fund). But its job isn’t to earn a return — it’s to keep you from borrowing at 25% when life happens. In that sense, it’s one of the highest-value “investments” in the whole sequence, because it protects all the progress above it.
One critical rule that applies throughout: never cash out or borrow against your retirement accounts to pay either debt. Raiding a 401(k) or TSP to pay off student loans or credit cards sacrifices your future for a temporary fix, triggers taxes and penalties, and destroys the compounding you can’t get back. Both debt types have resolution paths that don’t require torching your retirement. The emergency fund exists precisely so you never have to consider it.
It can be tempting, staring at credit card and student loan balances, to reach for the one big pool of money you have — your 401(k) or TSP. Don’t. Cashing out retirement savings before age 59½ triggers ordinary income tax plus a 10% early-withdrawal penalty, and a 401(k)/TSP loan puts your retirement at risk if you leave or lose your job (the balance can come due fast). Worse, you permanently lose the decades of tax-advantaged compounding that money would have earned — the single most valuable feature of a retirement account. Both credit card debt and student loans have resolution paths (payoff plans, hardship programs, income-driven repayment, forgiveness) that don’t require sacrificing your future. The emergency fund is your buffer so a crisis never forces this choice.
7. Run your own debt-vs-invest math
The priority order is universal, but the close call in Section 5 — extra student-loan payoff versus investing — depends on your specific rates and timeline. The calculator below always surfaces the higher-priority steps first (the match, then the credit cards), then runs the loan-versus-invest comparison on your actual numbers.
Your numbers
Educational estimate using standard compound-growth math. Both figures show what the extra dollars become at the stated rate — the loan side guaranteed, the investing side expected (markets can underperform). Not financial advice.
The calculator always enforces the priority order first: if you have an uncaptured match it tops the list, then any credit card balance, before it ever weighs loans against investing. The loan-versus-invest verdict usually favors investing at low loan rates and long horizons — and a split is almost always reasonable.
8. The federal employee version: PSLF and the TSP match
For federal employees, two federal-specific features can substantially change the debt-and-retirement math — one on the loan side, one on the retirement side.
Public Service Loan Forgiveness (PSLF) can change the loan calculation entirely. Federal employees (and other public-service and qualifying nonprofit workers) may be eligible for PSLF, which forgives the remaining balance on federal Direct Loans after 120 qualifying monthly payments (10 years) made under a qualifying repayment plan while working full-time for a qualifying employer. If you’re pursuing PSLF, the entire “pay off the loans faster” question can flip: paying extra toward loans you expect to have forgiven is wasted money. Instead, the PSLF strategy is usually to make the minimum qualifying payments (often under an income-driven repayment plan, which can keep payments low) and redirect every other dollar toward retirement saving and the credit card payoff. If you qualify for PSLF, your student loans may be the one debt you deliberately don’t accelerate.
This makes the priority order for a PSLF-eligible federal employee: capture the full TSP match; pay off credit cards; build the emergency fund; make minimum qualifying student-loan payments (often on an IDR plan) toward the 120-payment forgiveness, paying no extra; and invest everything else.
The TSP match is the federal version of the employer match. Federal employees under FERS receive an automatic 1% agency contribution plus matching on the first 5% they contribute — a full 5% agency contribution if the employee puts in at least 5%. That match is the highest-return move available, exactly as in the private sector. The rule is the same: contribute at least 5% to the TSP to capture the full match before paying extra toward any debt. Skipping it to pay down debt leaves guaranteed free money — and decades of tax-advantaged compounding — on the table.
Put together, a federal employee carrying both debts and pursuing PSLF has an unusually favorable setup: capture the 5% TSP match (free 100% return), eliminate the high-interest credit cards, build the emergency fund, make minimum IDR payments toward PSLF forgiveness, and invest the rest. The one common mistake is overpaying student loans that are on track for forgiveness — money that would have done far more in the TSP. For how the TSP fits your overall retirement number, see the how-much-do-I-need cornerstone, and for whether you’re on track overall, see the retirement readiness checklist.
9. Five questions about debt and retirement saving
Should I pay off debt or save for retirement first?
Both, in a specific order based on the return each dollar earns. First, contribute at least enough to capture your full employer match — that’s an instant ~100% return that beats everything else. Second, pay off high-interest credit cards (22-28% APR), which is a guaranteed return nothing else can match. Third, build a starter emergency fund, then a full 3-6 month fund, to stop surprise expenses from rebuilding your card debt. Only after those steps do you weigh paying down low-rate student loans versus investing more — a closer call. The key mistake is treating it as either-or and splitting your money equally across everything, which produces minimal progress on each. The priority order lets you knock out expensive debt, capture free retirement money, and build wealth at the same time.
Should I pay off my credit cards or my student loans first?
Credit cards, almost always. Credit cards charge 22-28% APR while federal student loans charge roughly 5-8%, so paying off the cards is a far higher guaranteed return. The gap is even wider than the rates suggest for four reasons: student loan interest is tax-deductible (up to $2,500 a year, above-the-line) while credit card interest isn’t; credit cards have resolution options like hardship programs that student loans lack; paying down card balances improves your credit score and debt-to-income ratio faster; and high-rate card balances compound against you quickly. Use the avalanche method — pay the minimum on everything, then attack the highest-rate card first, then roll that payment into the next. Once the cards are gone, shift your focus to the student loans and investing.
Is it worth investing while I still have student loans?
Often yes, especially at low loan rates and with a long time horizon. Federal student loans average about 5.8%, while the stock market has historically returned about 10% nominally or 6-7% after inflation — so when the expected investment return exceeds your loan rate, investing can build more wealth, particularly in tax-advantaged retirement accounts. One concrete example from Credible’s analysis: an extra $100 a month toward student loans for 10 years saves about $3,531 in interest, while that same $100 invested at 7% grows to about $16,579. The catch is certainty: loan payoff is a guaranteed return, while investment returns are expected, not guaranteed. For high loan rates (7%+), leaning toward payoff makes sense; for low rates (under 5%), investing usually wins; for most people in between, a split captures some of both — and even a 50/50 split dramatically beats putting everything toward the loans.
Can federal employees get their student loans forgiven?
Many can, through Public Service Loan Forgiveness (PSLF). PSLF forgives the remaining balance on federal Direct Loans after 120 qualifying monthly payments (10 years) made under a qualifying repayment plan while working full-time for a qualifying employer, which includes federal government service. If you’re pursuing PSLF, it flips the usual payoff advice: paying extra toward loans you expect to have forgiven is wasted money. The smarter strategy is to make the minimum qualifying payments — often under an income-driven repayment plan that keeps payments low — and redirect every other dollar toward capturing your TSP match, eliminating credit card debt, building your emergency fund, and investing. For a PSLF-eligible federal employee, student loans may be the one debt you deliberately don’t accelerate.
Should I stop my 401(k) or TSP contributions to pay off debt faster?
Never stop below the level that captures your full employer match, and never cash out or borrow against retirement to pay debt. The match (a full 5% agency contribution in the TSP if you contribute 5%, or whatever your private employer offers) is an instant ~100% return that no debt payoff can beat, so capturing it always comes first. Beyond the match, you can reasonably pause additional retirement contributions to attack high-interest credit card debt, since paying off a 25% card beats an expected 7% investment return — but resume investing once the high-interest debt is gone. What you should never do is cash out a 401(k)/TSP (which triggers taxes plus a 10% penalty before age 59½) or take a loan against it to pay debt, because you permanently lose the tax-advantaged compounding that’s the whole point of the account, and both debt types have resolution paths that don’t require sacrificing your future.
- The Debt Relief Company, “Student Loans vs Credit Card Debt: Which to Pay Off First” (March 2026)
- Financedevil, “Student Loan Debt vs. Credit Card Debt: Which to Pay Off First in 2026?” (June 2026)
- Credible, “Should You Pay Off Student Loans or Invest? (2026 Guide)” (Oct 2025)
- CNBC Select, “Credit Card Debt vs. Student Loan Debt: Which to Pay Off First” (Dec 2025)
- Bankrate, “Pay off debt or save? Expert tips to help you choose”
- Truist, “Pay Off Student Loans or Invest? How To Decide”
- Edvisors, “Should You Pay Off Credit Cards or Student Loans First” (June 2025)
- Federal Student Aid, “Public Service Loan Forgiveness (PSLF)”
- TIAA / MIT AgeLab, “Student loan debt and retirement saving survey”
- IRS, “Topic No. 456 Student Loan Interest Deduction”