December is when a lot of people get a year-end bonus, and it's also when a lot of people are carrying a credit card balance from the year. If both are true for you, the bonus has an obvious first job.

Say your bonus lands at $5,000 after taxes, and you owe $5,000 on a credit card that charges 22% a year. Bonus checks often have more withheld than a regular paycheck, so look at what actually hits your account, not the number your employer announced.

What the balance costs you

At 22%, a $5,000 balance costs about $1,100 a year in interest, which is about $92 a month. That's if the balance stays at $5,000. Card companies figure interest on your daily balance and add unpaid interest to what you owe, so if the balance creeps up, the cost goes up with it.

Pay the card off with the bonus, and that $1,100 a year stays in your pocket instead of going to the card company.

Compare it to saving the bonus

Most people's first instinct with a bonus is to save it. Say you put the $5,000 in a savings account paying 4%. That earns about $200 in a year, and the IRS taxes that interest as income. Meanwhile the card is still charging you about $1,100. You'd be about $900 behind before taxes, just for keeping the two balances side by side.

Paying off the card works like earning 22% on the $5,000, with no tax on it, because interest you avoid paying isn't income. A savings account would have to pay well over 22% to beat that, and none do.

What about an emergency?

Once the bonus goes to the card, it isn't sitting in savings anymore. But the card's $5,000 of available credit opens back up the moment you pay it off. If something breaks in February, you can still reach that money. You've just stopped paying 22% on it while you wait. I'd still keep some cash in savings for the things a card can't pay. I covered how much in how big your emergency fund should be.

The real risk is the card filling back up. If the same spending that built the balance keeps going, the bonus bought you a few months and nothing more. Before you make the payment, look at your last three statements and find where the balance came from.

If you have more than one card

Pay the highest rate first. A $5,000 bonus against a 22% card and an 18% card saves more on the 22% card, dollar for dollar. I walked through the two common payoff orders in snowball vs. avalanche.

Once the card is clear, take the monthly payment you were making on it, say $200, and keep sending it somewhere on purpose: savings, a line of credit, or a cash value policy. That's $2,400 a year that used to go to the card company and now works for you.