Medical billing codes explained (CPT, HCPCS, revenue codes)

What the numbers and letters on a bill mean, and which ones describe the service.

By the MedBillCheckup team · Published September 25, 2026 · Updated October 30, 2026 · About 3 minutes to read

Have your bill with you? Read it free in MedBillCheckup, a private medical bill checker that reads the bill on your device, and see a free preview of what may be worth asking about.

The codes on a medical bill are of three main kinds: a code for the service that was done (CPT or HCPCS), a code for the reason it was done (the diagnosis code, which appears on claims more than on bills), and, on hospital bills, a four-digit revenue code for the department that provided it. You do not need to learn them all, but knowing which kind you are looking at tells you what a line is about, and the free medical bill code lookup gives Medicare's name for the drug, supply, equipment and ambulance codes on its list (a letter and four digits).

Kind Looks like What it tells you Where to look it up
CPT Five digits The service or procedure, such as a visit, an X-ray or a lab test The billing office
HCPCS Level II A letter and four digits Drugs, supplies, equipment and ambulance services Our code lookup
Revenue code Four digits, on hospital bills The department the charge came from The billing office
ICD-10-CM A letter and numbers The diagnosis or reason for the visit Mostly on claims and your insurer's EOB

CPT codes: what was done

Five-character codes, usually five digits, that describe a procedure or service, such as an office visit, an X-ray or a lab test. They are maintained by the American Medical Association and appear on most doctor and hospital bills. A yearly checkup can show a preventive visit line next to an office visit line: see charged for your annual physical.

HCPCS Level II codes: supplies, drugs and extras

A letter followed by four digits. They cover things CPT does not, such as drugs given by injection, medical supplies, equipment and ambulance services. Codes starting with J are often drugs, and codes starting with E are durable medical equipment.

Have your bill in front of you? Check it now, free. Your bill file stays on your device.

Check my bill, free

Revenue codes: which department, and how to read the four digits

A revenue code is a four-digit number printed on hospital bills (some statements show three digits, leaving off the first zero). It says which department or kind of charge a line belongs to, not what was done. The code list is published by the National Uniform Billing Committee and copyrighted by the American Hospital Association, so we do not reprint it. You do not need the list to read your bill:

  • The first digit is usually 0.
  • The two middle digits name the department or kind of charge: pharmacy, laboratory and the emergency room each have their own pair, so lines from one department share them.
  • The last digit is a subcategory, where 0 means "general" and other digits narrow the department down.

So two lines whose codes share the same middle digits come from the same department, even when the descriptions differ. A revenue code on its own tells you where a charge came from, not exactly what was done; the CPT or HCPCS code on the same line, when there is one, says what.

Diagnosis codes: why it was done

ICD-10-CM codes, a letter followed by numbers, describe the diagnosis or reason for the visit. They matter for insurance: a wrong diagnosis code can be why a claim was denied.

Modifiers and drug codes

  • Modifiers are two characters added to a code, such as 25 or LT, that say something extra: a separate service on the same day, or which side of the body.
  • NDC numbers identify a specific drug and package, and sometimes appear next to pharmacy charges.

What to check

Every charged line should have a code. A line with no code, the same code twice on the same day, or a code for something you do not recognize is worth a question. If your bill shows totals but no codes, our free itemized bill request letter asks for the code of each charge.

Open your bill in MedBillCheckup: take a photo or choose the PDF. It is read on your device and the file stays with you. The free check shows how many things are worth asking about, and the largest amount you may get back or may not owe. The full list is paid. With it, we will list each line with its code, point out when codes are missing and when a code is billed more than once, and write out what to ask.

Want a second pair of eyes on your bill?

Check it free. Your bill file stays on your device.

Check my bill, free

Questions about this guide

What are the codes on my medical bill?

Usually three kinds. A CPT code (five digits) or an HCPCS Level II code (a letter and four digits) says what service, drug or supply was billed. On a hospital bill, a four-digit revenue code says which department the charge came from. A diagnosis code (ICD-10-CM) says why the care was given and appears mostly on claims. Ask the billing office to describe any code you do not recognize.

Is there a medical bill code lookup?

Yes. Our free [medical bill code lookup](/medical-bill-code-lookup) shows Medicare's name and usual units for HCPCS Level II codes (a letter and four digits), such as drugs, supplies, equipment and ambulance services. It does not look up five-digit CPT codes or revenue codes. This guide explains those, and the billing office can describe them.

Where can I look up what a code means?

Ask the billing office to describe any code you do not recognize, in plain words. For HCPCS Level II codes, our [medical bill code lookup](/medical-bill-code-lookup) and the Centers for Medicare & Medicaid Services publish the code list. Your insurer's explanation of benefits often describes the service too.

Why does the same service have two different codes?

A hospital bill can show a revenue code for the department and a CPT or HCPCS code for the service on the same line. They describe the same charge from two angles.

Sources

  1. American Medical Association: CPT (Current Procedural Terminology)
  2. Centers for Medicare & Medicaid Services: Healthcare Common Procedure Coding System (HCPCS)
  3. Centers for Disease Control and Prevention: ICD-10-CM
  4. National Uniform Billing Committee: UB-04 billing data, including revenue codes
  5. U.S. Food and Drug Administration: National Drug Code directory

Free tools