Skip to the page
  1. Home
  2. Journal
  3. Money mechanics
6 minutes of reading

Money mechanicsMECH · 03

Merchant category codes: the four digits that label every purchase

Every card purchase carries a four-digit label describing what kind of business took the money. That label decides rewards, triggers blocks, shapes fraud checks and sometimes explains a decline. Here is how merchant category codes work and where they fall short.

Journal cover with a card beside a stamped four-digit code inside a red frame

Buy groceries with a rewards card that pays extra at supermarkets, and the bonus appears. Buy the same groceries at a large general store, and it may not. Nothing about the food changed. What changed was a four-digit number attached to the payment: the merchant category code.

Merchant category codes, usually shortened to MCCs, label every card transaction with the kind of business that received it. The code describes the shop, not the thing you bought, and most of the confusion starts there.

What an MCC is

An MCC is a four-digit number that classifies a merchant by its main line of business. The codes come from a shared standard used across the card industry, with networks adding their own guidance. A few commonly cited examples:

  • 5411 for grocery stores and supermarkets;
  • 5812 for restaurants and eating places;
  • 5541 for service stations;
  • 7995 for betting and gambling.

There are hundreds of codes, covering everything from airlines and hotels to dentists and parking lots. Each payment carries the code assigned to the merchant that took it.

Who assigns it

The merchant's acquirer, the bank or provider that lets it accept cards, assigns the code when the merchant signs up. It is based on what the merchant says it does and what the acquirer sees. The merchant cannot usually change it at will, though codes can be corrected or changed when a business changes.

We described the acquirer's role in the cast behind every card payment. Assigning the code is one of its quieter duties, and one with consequences.

What the code is used for

Once attached, the code is read by many systems:

  • rewards programs, which pay bonuses on certain categories;
  • interchange pricing, where some categories carry special rates, as we explained in the fee you never see;
  • spending controls, such as corporate cards limited to travel and meals;
  • blocks, where some card programs refuse whole categories;
  • fraud models, which weigh how risky a category is and how unusual it is for you;
  • budgeting apps, which sort your spending into groups.

That is a lot of decisions resting on one number chosen when the merchant signed up.

Why purchases land in the "wrong" category

Because the code describes the merchant rather than the item, mismatches are common:

  • groceries bought at a superstore coded as general merchandise;
  • a café inside a bookshop coded as a bookshop;
  • a hotel restaurant coded as a hotel;
  • anything bought through a marketplace or payment platform coded under the platform's category.

None of these is an error in the strict sense. The code is doing what it was built to do; it just answers a different question from the one you are asking.

Codes and declines

Some card programs block specific categories outright. Gift cards and many card programs cannot be used for gambling, for example, and some corporate cards cannot be used outside approved categories. When a payment is declined for this reason, the decline message rarely says so.

If a card works in most places but fails repeatedly at one type of business, the category is a likely reason. The issuer can usually confirm it. Our help center lists the questions to ask us if one of our cards is declined somewhere unexpected.

Codes and fraud checks

Risk systems look at categories in two ways. Some categories carry more fraud in general, so payments there get closer attention. And a category you have never used before, especially an unusual one for your pattern, may raise a payment's risk score. A first purchase in a new category is not suspicious in itself, but it can contribute to a decline when combined with other signals.

Can you see the code?

Usually not on a statement. Some banking apps show the category name, which is derived from the code. Some card issuers will tell you the code for a particular transaction if you ask. For most people, the category label in an app is close enough.

Codes and rewards: a practical note

If you choose a card for its category bonuses, it helps to know that:

  • the bonus depends on the merchant's code, not on what is in your basket;
  • large retailers often carry a general code even if they sell mostly groceries;
  • payments through third-party platforms may carry the platform's code;
  • the card's terms usually list which codes count.

That is the fine print behind "5% back on groceries".

Codes and businesses that do several things

A business with several activities usually gets one code for its main one. A pharmacy that also sells cosmetics and snacks will usually be coded as a pharmacy. A large retailer may have separate codes for its fuel station and its store. When a single business uses different payment terminals for different departments, the codes can differ even under the same roof.

Why the system persists

MCCs are blunt, but they are cheap, universal and fast. A four-digit number can be read by every system in a payment chain without anyone needing to know what was in your basket, which also has a privacy benefit: the code says what kind of shop, not which items. For all their quirks, they remain one of the few shared vocabularies across the whole industry.

When a merchant is miscoded

Occasionally a business ends up with a code that does not fit what it does. A small online bookshop coded as a general digital-services merchant, for example, or a café coded under a category that some cards block. The effects show up for customers before the merchant notices: cards declined for no visible reason, rewards missing, budgeting apps sorting purchases into odd groups.

If you suspect a miscode, two messages can help. Tell the merchant what you saw, because only its acquirer can correct the code. And if a card is being declined, ask the issuer whether the category was the reason. Neither message takes long, and a merchant who did not know about the problem is usually glad to hear about it, since a wrong code costs it sales too.

Questions people ask

Can a merchant choose its own code to get better rates?

Not freely. The acquirer assigns the code based on the business, and networks expect it to be accurate. Misclassification can lead to penalties.

Why did my rewards card not give a bonus at a grocery store?

The store may carry a different code, such as general merchandise or warehouse club, even though it sells groceries.

Do codes reveal what I bought?

No. They describe the kind of merchant, not the items. Detailed item data is not normally part of a card payment.

  • merchant category codes
  • card payments
  • spending controls
  • rewards

The price list, printed.

Two numbers, a person who checks every payment and refund rules in writing.