There is a number worth remembering the next time a gift card turns up in a drawer. Five years. Under federal law, most gift cards cannot expire for at least five years from the day they were bought. That runs against the quiet fear many people carry, that a card left alone too long simply dies. Retailers benefit when you believe that, because a forgotten card can feel like a lost cause. It usually is not. The money is often still yours, long after you assumed it was gone.

The rule comes from the Credit CARD Act, a federal law passed in 2009, with the gift card sections taking effect in 2010. Lawmakers wrote it after years of complaints about cards that drained away through fees or expired within a year. The law set a floor that every issuer in the country has to meet. It covers store gift cards tied to a specific retailer and the general prepaid cards branded by the major payment networks. Those are the plastic cards you buy at the register and hand to someone as a present. The protection attaches to the card the moment it is sold. It does not depend on where you bought it.

Here is what the five year rule actually protects. The funds on the card have to stay good for at least five years from the date of purchase. If someone adds money to the card later, the clock resets from that most recent load. So a card bought today holds its value into 2031 at the earliest. Many issuers choose not to set any expiration at all, since tracking it is more trouble than it is worth. The point is that a short expiration date printed on the back is often not enforceable. The value behind it tends to outlast the print.

Fees used to be the other way cards quietly disappeared. The law reined those in as well. An issuer cannot charge an inactivity or service fee until the card has gone unused for at least a full year. After that, it can charge only one such fee per month, and it has to spell out the terms clearly. That stopped the old practice of shaving a few dollars off every month until nothing was left. A card sitting untouched for eleven months should still hold its full balance. The fees cannot start earlier than the law allows.

Sometimes the plastic itself carries a printed expiration date that comes sooner than the money runs out. The law accounts for that too. If the card expires while funds remain, the issuer has to give you a replacement at no charge. You should not lose real money simply because the physical card aged out. The balance is what matters, and the balance is protected. This is why keeping the card, even a worn one, is worth the drawer space. The value does not vanish with the printing.

The rules do have limits, and it helps to know them. Cards handed out as rewards, loyalty perks, or free promotions are treated differently and can expire sooner. If a company gives you a twenty dollar card for signing up, that card may carry a shorter clock, though the terms still have to be disclosed. The five year floor is aimed at cards people pay for, not cards given away as a bonus. Reloadable prepaid cards used like a bank account also fall outside the gift card rules. Reading the fine print tells you which kind you are holding. The difference is whether money changed hands to buy it.

States can and do go further than the federal floor. Several ban gift card expiration entirely, giving you even more room than five years. A handful require the store to hand over the remaining cash when a balance drops low. California, for example, makes retailers give cash back on a gift card once the balance falls under ten dollars. That turns a stray two dollar balance into two real dollars in your pocket. Your state may sit on top of the federal rule with stronger terms. It never drops below it.

So what should you do with a card you assumed was dead? Start by digging up the receipt or the original amount if you can, since that sets your five year window. If a retailer tells you the card expired inside that period, push back and point to the federal rule. If they still refuse, you can file a complaint with the Consumer Financial Protection Bureau, which oversees these cards. Keep the card until the matter is settled, because the balance is the proof. Billions of dollars in gift cards go unspent every year, much of it written off by people who thought the clock had run out. Most of the time it had not. The money was sitting there the whole while, waiting to be claimed.