Skip to content
Card basics

Merchant Category Codes: What They Are and How to Use Them

A merchant category code (MCC) tells a card program what kind of business a merchant is. Learn who assigns it, the codes business cards meet most, how to find a merchant's code, and how to use category locks without blocking the purchases your team needs.

Sabeer NelliCEO of ZIL MONEYUpdated 12 min read

VirtualCardMaker.com, powered by Zil Money is a financial technology company, not a bank. Banking and money movement services are provided through partner financial institutions, including Citizens Bank, N.A., and licensed service providers. FDIC insurance coverage applies only to eligible deposit products and accounts, and is subject to applicable terms, conditions, limitations, and requirements. Additional information regarding partner institutions, products, and services is available in the applicable terms and agreements.

  • PCI DSS aligned
  • ISO 9001 Quality Management Certified
  • ISO 20000 IT Service Management Certified
  • ISO 27001 Information Security Management Certified
  • Aligned with NIST SP 800-53 controls
  • AICPA SOC for Service Organizations
  • AICPA SOC Service Organization Control Reports
  • HIPAA-aligned safeguards
  • CCPA requirements followed
  • GDPR compliant
Blue payment card surrounded by category tiles for fuel, travel, meals and shopping, with one allowed check mark and one red lock

Read summarized version with:

A merchant category code (MCC) is a four-digit number that shows what kind of business a merchant is, like 5411 for grocery stores. The merchant's payment processor picks the code, and your card program reads it to decide whether a company card allows the purchase.

This guide is for owners, finance managers and card admins who want to know what the code on a transaction means and how to use it to control spending. It covers who assigns MCC codes and which codes business cards see often. It also shows how to look up a merchant's code and what to do when a category lock blocks a purchase it should allow.

The basics

What is a merchant category code?

A merchant category code is a four-digit number attached to a business when it starts taking card payments. It sorts merchants into groups. Examples are service stations (5541), hotels (7011) and software stores (5734). Every card purchase carries the merchant's code, so the card program can see what kind of business took the payment.

The code describes the merchant as a whole. It does not list the items in the purchase. If an employee buys office chairs at a store coded as a department store, the transaction shows 5311, the department store code, not furniture.

Key facts about MCC codes

  • Standard: merchant category codes follow ISO 18245, the international standard for codes by type of business, trade or service.
  • Network lists: Visa publishes its codes in the Visa Merchant Data Standards Manual, and Mastercard in its Quick Reference Booklet. Common codes match across both, but some names differ.
  • Uses: card programs use the code for spending controls and reports. Card networks use it to apply their own rules to each type of business.

Who assigns a merchant category code?

The merchant's acquirer assigns it. The acquirer is the company that sets a business up to accept cards. It often works through a payment processor. The Visa Core Rules say the acquirer must give each merchant location the code that most accurately describes its business. Mastercard requires a valid and accurate code in every authorization request.

That means a merchant does not usually pick its own code, and the company that issued your card does not choose it either. If a merchant thinks its code is wrong, it asks its processor or acquirer to review it.

Your card program reads the code. It does not set it. When a card declines at a store because of its category, the fix is on your side (allow that merchant or category on that card) or on the merchant's side (ask its processor to correct the code). The card program applies your rules to whatever code arrives.

How it works

How do merchant category codes work when a card is used?

The code travels with every purchase request. Here is what happens between the tap and the approval.

  1. The employee pays

    They tap, swipe or type the card number at checkout, in person or online.

  2. The merchant's processor sends the request

    The request carries the amount, the merchant's name and location, and the merchant category code.

  3. The card network routes it

    Visa or Mastercard passes the request to the program that issued the card.

  4. The card's rules are checked

    The program compares the code and amount with the card's settings, such as a category lock, a merchant lock or a spend limit.

  5. Approved or declined

    The purchase goes through or is declined, and the code stays on the transaction record for reports and review.

Field service worker tapping a blue company card on a gas station fuel pump reader, with a white work van behind him
At the pump, the station sends MCC 5541 or 5542 with the purchase. A fuel card that allows only those codes approves the charge, and a spend limit covers anything rung up with it.
Code list

Common merchant category codes for business spend

Business cards meet the same few dozen codes again and again. The merchant category code list below groups them by what a card is for. Names are shortened from the Visa manual. For every code, use the Visa or Mastercard list.

CodeCategoryTypical business useOn an employee card
Fuel and vehicles
5541Service stationsFuel for company vehiclesAllow on fuel cards
5542Automated fuel dispensersPay-at-the-pump fuelAllow on fuel cards
7523Parking lots, parking meters and garagesParking on job sites and tripsAllow on travel and field cards
4214Motor freight carriers and trucking, moving and storage, local deliveryFreight and delivery servicesAllow on logistics cards
Travel
4511Airlines and air carriersFlightsAllow on travel cards
7011Lodging: hotels, motels and resortsHotel staysAllow on travel cards
7512Automobile rental agencyRental carsAllow on travel cards
4111Local and suburban commuter transportation, including ferriesTrains, transit and ferriesAllow on travel cards
4121Taxicabs and limousinesTaxis and ridesAllow on travel cards
Meals
5812Eating places and restaurantsClient meals and travel diningAllow on travel and meal cards
5814Fast food restaurantsQuick meals on the roadAllow on travel and meal cards
Software and subscriptions
5734Computer software storesSoftware purchasesAllow on software cards
7372Computer programming, data processing and integrated systems design servicesSaaS tools and cloud servicesAllow on software cards
5968Direct marketing: continuity and subscription merchantsRecurring subscriptionsAllow with a monthly cap
4814Telecommunication servicesPhone and internet plansAllow on telecom cards
Ads and services
7311Advertising servicesAd spend and agenciesAllow on marketing cards
7399Business services (not elsewhere classified)A broad mix of B2B servicesCase by case
8999Professional services (not elsewhere classified)Consultants and other servicesCase by case
Office and supplies
5111Stationery, office supplies, printing and writing paperOffice supply wholesalersAllow on supply cards
5943Stationery stores, office and school supply storesOffice supply storesAllow on supply cards
5045Computers, computer peripheral equipment and softwareLaptops and accessoriesAllow on IT cards
5251Hardware storesTools and job-site suppliesAllow on field cards
General retail
5411Grocery stores and supermarketsBreak room and event suppliesCase by case
5310Discount storesStores that sell a bit of everythingCase by case, with a cap
5311Department storesStores that sell a bit of everythingCase by case, with a cap
5999Miscellaneous and specialty retail shopsA broad catch-all retail codeCase by case
Money movement and cash-like
4829Money transferSending money to another personBlock on employee cards
6010Financial institutions: manual cash disbursementsCash over the counterBlock on employee cards
6011Financial institutions: automated cash disbursementsATM cashBlock on employee cards
6012Financial institutions: merchandise, services and debt repaymentPayments to financial institutionsBlock on employee cards
6051Non-financial institutions: foreign currency, money orders and cryptocurrencyCash-like purchasesBlock on employee cards
6540Non-financial institutions: stored value card purchase or loadLoading other cardsBlock on employee cards
7995Betting, including lottery tickets and casino gaming chipsGamblingBlock on employee cards

The last column is a starting point, not a rule. Each company sets its own policy. Airlines, car rental companies and hotel chains can also carry their own brand codes in the 3000s, so a travel card may need more than the general travel codes.

Lookup

How to find a merchant's MCC

There is no single public directory that tells you which code a specific store will send. These steps usually get you the answer.

  1. Check a past purchase. Open an earlier transaction with that merchant in your card dashboard or statement. The code that arrived is solid evidence.
  2. Ask the merchant. The code appears on the merchant's processor statement or account settings.
  3. Read the meaning in the network list. Once you have the four digits, the Visa or Mastercard list tells you the category name.
  4. Test with a small purchase. If you still cannot tell, make one small purchase on a card with the lock you plan to use and read the result.

Online lookup tools explain what a code means. They cannot tell you which code a given store, website or checkout page will send, because a brand's online and in-store sales can run through different accounts.

Card controls

How do I block a merchant category on a company card?

Card programs use merchant category codes in two ways:

  • Allow-list: the card works only in the categories you choose. It suits a card with one job, like fuel or travel.
  • Block-list: the card works everywhere except the categories you name. It suits a general card where you only want to shut out risky codes.

For a card with a single purpose, an allow-list is the tighter choice. A card that can only buy fuel cannot be used for gift cards, whatever the store's code.

Lock by merchant or by category?

  • One known vendor (a software subscription, a regular supplier): lock the card to that merchant. Category codes are not needed.
  • The vendor changes but the type of store does not (fuel, parking, or hotels on business travel): lock the card to those categories.
  • Marketplaces, big-box stores and payment apps, where one code covers many sellers: use a merchant lock plus a spend limit, and require a receipt for each charge.

Starter allow-lists by card purpose

Card purposeStart with these codesWatch out for
Fuel5541, 5542Snacks rung up with the fuel. Add a per-purchase limit.
SoftwareA merchant lock per vendor. As a backup: 5734, 7372, 5968Vendors that bill through an app store or reseller with a different code.
Travel4511, 7011, 7512, 4111, 4121, 7523, 5812, 5814Booking sites coded as travel agencies or software. Chains with their own brand codes.
AdsA merchant lock per ad platform. As a backup: 7311Ad platforms that do not use 7311. Check a posted charge first.
Office and supplies5111, 5943, 5045, 5251Big-box stores (5310, 5311) that sell everything. Add them only with a cap.
Any general employee cardBlock 4829, 6010, 6011, 6012, 6051, 6540, 7995Gift cards can also be sold under general retail codes.

With Virtual Card Maker, you can limit each card to the merchant categories you choose, or to specific merchant names, and add spend limits, country limits and time windows on top. See how merchant and category locks work, or see every card control.

Give every card one job

Issue a separate virtual card for fuel, travel or software, each with its own category lock and spend limit.

Troubleshooting

When MCC controls fail and what to do

Category locks only work as well as the codes merchants send. These four cases cause the common surprises.

The merchant is miscoded. A restaurant set up as an entertainment venue, or a grocery store coded as general retail, will fail a meals or grocery lock. The code is wrong at the source, so only the merchant's processor can change it.

One code covers many sellers. Marketplaces and payment facilitators process sales for many businesses. Visa lets some multi-line marketplaces use 5262 (marketplaces), so an allowed category can still reach thousands of sellers.

The basket is mixed. A service station code tells you where the card was used, not what was bought. Snacks and drinks can ride along with fuel on the same charge.

Online and in-store differ. The same brand can send one code at the register and another on its website or app, so a lock that works in person can decline online.

Gift cards and cash-like buys can slip through general retail codes. Blocking 6540 and 6051 helps, but many stores sell gift cards under their usual retail code. On a general employee card, combine category blocks with a spend limit and a receipt rule.

Checklist when a category lock declines a purchase

  1. Read the declined attempt

    Note the merchant name and the code it sent.

  2. Check the card's job

    Decide whether the purchase fits what the card was issued for.

  3. Allow it narrowly

    If it fits, add that merchant by name, or allow that one category on that card only.

  4. Flag a wrong code

    If the merchant looks miscoded, ask it to review the code with its processor.

  5. Update your template

    Record the fix so the next card for the same purpose starts with it.

What is an MCC code?
An MCC code is a four-digit merchant category code that tells card programs what kind of business a merchant is. For example, 5541 is service stations and 7011 is hotels. Card programs use it to apply spending controls, sort reports and decide which purchases a card allows.
Who assigns a merchant category code?
The merchant's acquirer assigns it when the business is set up to take cards. Network rules tell the acquirer to choose the code that describes the business most accurately. The company that issued your card reads the code on each purchase but does not set it.
Are MCC codes the same for Visa and Mastercard?
Mostly. Both networks build on the same ISO standard, and common codes like 5411 and 5812 match. Some names differ, and a few codes mean different things in each list, so check the network's own list when a specific code matters to your card rules.
How can I find a merchant's MCC before I buy?
Start with a past purchase from the same merchant, which shows the code that arrived. You can also ask the merchant to check its processor statement. Lookup tools explain what a code means, but they cannot confirm which code a specific store or website will send.
What MCC is Amazon?
It depends on what you buy and who sells it. Large marketplaces and their related services can use different codes for different parts of the business. Check a posted Amazon charge in your card records to see the code your card program actually received.
What is the MCC for gas stations?
Gas stations usually use 5541 for service stations or 5542 for automated fuel dispensers at the pump. Allow both on a fuel card. Because snacks can be rung up with fuel, pair the category lock with a per-purchase limit and a receipt rule.
What is the difference between MCC 5812 and 5814?
5812 is eating places and restaurants, and 5814 is fast food restaurants. A meals or travel card usually needs both. If you allow only one, some normal meal purchases will decline because the restaurant was coded the other way.
Is an MCC the same as a NAICS or SIC code?
No. An MCC groups merchants for card payments. NAICS and SIC codes group businesses for government statistics and records. A business can have all of them, and they do not map one to one, so do not use one in place of the other.

Put category locks to work

Merchant category codes work well when every card has a clear job. Give fuel, travel and software their own cards, lock each one to the categories it needs, and let spend limits catch what the codes miss.

Create your account to issue your first card, or talk to our team about setting up category locks for your business.

Try it

Issue a card with these rules on it.

Set the limit, restrict the merchant, choose the active window, and send the card. Every charge lands in one dashboard, already attributed.

Build one in Card Studio

Share