If there are two pieces of financial advice that get hammered more often than any others, they're "Get out of debt" and  "Put enough in your 401(k) to get any corporate match."  With times getting tough--making both debt reduction and saving seem more urgent than ever--how do you balance those two choices?

To figure out the right answer, you need a couple of pieces of information: You need to know what the corporate match on your 401(k) is and you need to know what the interest rate on your debt is.

Corporate match

During the good times, many companies offered a 100% match--one hundred cents on the dollar for the first three or six percent of your salary that went into the 401(k).  Others offered a 50% match.  Some had a tiered match, offering 100% for the first few percent and then a 50% match for the next few percent.  Get the rules from the plan documents or your company's internal communications regarding the plan.

Be aware that companies have been cutting their 401(k) matches, as a way to cut expenses in the face of the current hard economic times.  So, make sure you're getting the latest information, and also keep alert to future changes.  If the match changes, it could easily change the whole calculation.

Cost of debt

Track down all the kinds of debt that you've got--credit cards, personal loans, car loan, mortgage, etc.  You're looking for total cost of credit, so you not only need to know the APR, you also need to include any fees that you end up paying.

Credit card companies in particular have been raising the rates they charge.  They've also been becoming more aggressive with their use of the "penalty" rates that they charge people who have missed a payment--or simply have a high debt load.

What you need is the percentage rate you actually pay.  That number should be on every statement for a credit card.  For fixed-rate loans, it'll be in the loan agreement.

Comparison

The comparison is straightforward, except for one detail:  Time.  You only get the corporate match once, but you go on paying interest on your debt until it's paid off.  So, you need to include that in your calculation.

If you can pay your debt off in one year, then you can just compare the rates--as long as the interest rate on your debt is less than the corporate match, put enough in the 401(k) to get the full match.  If the corporate match is 100%, only the most pernicious of payday loans will have an interest rate so high that paying off debt makes more sense than funding your 401(k).  Even a match of 50% is high enough that only seriously predatory loans will deserve to be paid off before funding your 401(k).  (This is why so many financial advisors just give the blanket advice to fund your 401(k)--a 100% or even 50% match is so good that it just swamps other considerations.)

If your debt is going to linger for two or three years, though, the calculation begins to change.  If you've got some high-rate credit card debt that's costing you 27% a year and that's going to take you two or more years to pay off, then attacking that debt would make more sense than funding a a 401(k) with a 50% match.  For a rough calculation, just multiple the interest rate by the number of years it'll take to pay off the debt.  That won't be exact (because the amount owed will decline over the period), but it'll be close enough that it's probably not worth going to any trouble to make a more accurate calculation.

If your debt is at 20%, then you're better off funding your 401(k) as long as you'll be still be able to get the debt paid off in 5 years (if you've got a 100% match) or 2.5 years (if you've got a 50% match).

Considerations

There are certain limitations to the calculation. To begin with, you have to be careful about extending this sort of analysis to longer-term, lower-rate debt like mortgages or student loans, for two reasons:

First, once you go beyond a few years, the effect of the declining balance begins to be large--large enough that you can't just use the simple form of the calculation.  You can't just say that you should put your money into paying off your 6% mortgage if it's got more than 17 years to run.

Second, the corporate match is only one source of gain for your 401(k) contribution.  There's also the interest, dividends, and capital gains that the investments in your 401(k) can be expected to return (the difficult investment climate of the past few months notwithstanding).

Still, for shorter-term debt, the comparison is usually so stark that a rough calculation like this will give you the right answer.  If you've got a payday loan where you're paying a 246% APR, there's no question that you're better off suspending your 401(k) contributions until you get it paid off.  If you're paying ordinary consumer debt interest rates, you're probably better off going for the match.

A few other details:

  • Don't forget that you have go on making the minimum payments on each of your debts.  (Even a very high corporate match wouldn't leave you ahead if you defaulted.)
  • Allow for the fact that your 401(k) probably only lets you contribute whole percentages of your salary, and probably only lets you change the contribution level at certain times. 
  • If your 401(k) has a tiered match, you have to do the calculations separately for each tier--it may well make sense to fund the first few percent that get the higher match, but to not fund the next few percent that get a lower match. 

These factors don't affect the basic calculation, though.

Emergency fund

With credit card companies piling punitive interest rates on top of already high late fees, it has become especially important that you have an emergency fund.  Even if it means a delay in getting your debt paid off--even if it means giving up some sweet, sweet 100% match money--you simply have to have enough of an emergency fund to bridge something like a holiday weekend glitch in the direct deposit of your paycheck.  Ideally you'd want a much larger emergency fund, but the rock bottom minimum has to be enough to make one minimum payment on all of your debts.  Anything less than that leaves you too vulnerable.

The corporate match on a 401(k)--if you're lucky enough to have one--is often too good of a deal to turn down, even if it means paying off your debts more slowly, or taking longer to accumulate an emergency fund.  Under certain circumstances, though--such as a debt with a very high interest rate, or an emergency fund so small that you're exposed to any little cash flow hiccup causing you to miss payments and end up owing more in late fees and higher rates than you'd gained from the match--you need to take care of those items first.  Now you know how to figure which situation you're in.