The codes on your license tell police, employers, and other officials what you are allowed to drive and any restrictions that explore to you
Every driver's license carries a set of letters and numbers that look like shorthand. These are not random. Each one means something specific about what vehicle classes you can operate, what medical or legal conditions explore to you, and what you cannot do behind the wheel. Understanding them matters because they determine whether you can legally drive a truck for work, tow a trailer, or operate a motorcycle — and they show up on background checks for jobs and insurance quotes.
The codes fall into three categories: class codes (what you can drive), endorsement codes (special permissions you have earned), and restriction codes (limitations on your driving). Each state uses its own abbreviations, so a code that means one thing in California means something different in Texas. This guide walks you through the most common ones and explains what they control.
Key Takeaways
- Class codes (like D, C, or M) show what type of vehicle you are legally permitted to operate, from passenger cars to commercial trucks.
- Endorsement codes (like P for passenger, H for hazmat, or T for tractor-trailer) grant you permission to drive specialized vehicles or carry certain cargo.
- Restriction codes (like B for corrective lenses or D for automatic transmission only) limit how and when you can drive, even if your class allows it.
- Every state uses different abbreviations for the same permissions, so you must check your own state's code guide, not another state's.
- Your license class and endorsements determine what jobs you can work in and what vehicles you can legally operate for work or personal use.
Class codes: what vehicle type you can drive
The class code is the foundation of your license. It tells you the heaviest and most complex vehicle you are legally allowed to operate. Most new drivers receive a Class D (or Class C in some states), which covers standard passenger cars, SUVs, and light trucks under a certain weight.
If you want to drive a commercial truck, school bus, or vehicle that carries passengers for hire, you need a higher class — usually Class A or Class B. These require additional training, a written test on commercial vehicle rules, and often a road test in the actual vehicle. The weight threshold that separates classes varies by state; in some states it is 26,001 pounds, in others it is different. Check your state's DMV website for the exact cutoff.
Class M (or Class 1 in some states) is for motorcycles. It is a separate license in most states and requires its own written test and road test, even if you already hold a car license. Some states allow you to add motorcycle endorsement to a regular license instead of getting a separate class.
Endorsement codes: special permissions you have earned
An endorsement is a permission added to your license that allows you to do something your base class does not. You earn endorsements by passing additional tests — usually a written exam and sometimes a skills test. Common endorsements include P (passenger — you can drive vehicles carrying 16 or more people), H (hazmat — you can transport hazardous materials), and T (tractor-trailer — you can operate double or triple trailers).
The most common endorsement for new drivers is M, which allows you to operate a motorcycle. If you pass the motorcycle written test and road test, you receive an M endorsement on your Class D license, or you may receive a separate Class M license depending on your state. Some states call this an endorsement; others treat it as a separate class.
Other endorsements exist for tanker vehicles (N), passenger vehicles (P), and air brake systems (X). If your job requires you to drive a specific type of vehicle, your employer will tell you which endorsement you need. You cannot legally drive that vehicle without it, even if you think you are capable.
Restriction codes: limitations on your driving
A restriction code limits how you can drive, even if your class and endorsements allow it. The most common restriction is B, which means you must wear corrective lenses (glasses or contacts) whenever you drive. If you fail the vision test without correction but pass with glasses, you receive a B restriction. Driving without your glasses when restricted is a violation.
Other common restrictions include D (automatic transmission only — you cannot drive a manual transmission vehicle), E (no freeway driving), and K (no passengers under a certain age). Some states use restriction codes for medical conditions, such as a requirement to take medication or a limit on driving hours. A few states restrict certain drivers to daytime driving only.
Restrictions appear on your license as letter codes, usually on the back or in a dedicated section. If you have a restriction and violate it, you can be cited even if you were driving safely otherwise. For example, driving a manual transmission car with a D restriction is illegal, regardless of how well you drove.
How class, endorsement, and restriction work together
Your license is a combination of all three elements. You might have Class D (passenger car), no endorsements, and restriction B (corrective lenses). Or you might have Class A (commercial truck), endorsements H and T (hazmat and tractor-trailer), and no restrictions. Each combination determines exactly what you can and cannot do.
If you want to add an endorsement or remove a restriction, you must visit your state's DMV and request the change. For endorsements, you will take a written test and possibly a road test. For restrictions, you may need to pass a new vision test, medical exam, or other evaluation. The process and cost vary by state.
Your employer, insurance company, or a background check may reveal codes on your license that you did not know were there. If you see a code you do not recognize, ask your DMV to explain it. Do not assume it is a mistake — it was added for a reason, usually during your original license test or a renewal.
Why codes matter for jobs and insurance
Many jobs require specific license classes or endorsements. Delivery drivers, truck drivers, and bus drivers all need commercial licenses with the right class and endorsements. If you do not have the correct code, you cannot legally work that job, and your employer cannot legally hire you for it. Insurance companies also check your codes — if you drive a vehicle your license does not permit, your insurance may not cover an accident.
Background checks for employment often include a copy of your driving record, which shows your license class and any restrictions. Some employers will not hire you if you have certain restrictions, such as a requirement to wear glasses, because they worry about liability. This is legal in most states. If a job requires a specific license class or endorsement you do not have, you will need to obtain it before you can start.
How to find your state's code guide
Every state publishes a guide to its license codes, usually on the DMV website. Search "[your state] DMV license codes" or "[your state] driver's license abbreviations" to find the official list. The guide will show you every code your state uses, what it means, and what test or requirement you need to earn it.
Your license itself may also print a legend on the back or inside the cover that explains the codes. If you cannot find the legend or the state guide, call your DMV directly. They can tell you what each code on your license means and whether you need to take any action to add or remove codes.
Frequently Asked Questions
What does it mean if my license says "Class D, no endorsements, restriction B"?
Class D means you can drive passenger cars and light trucks. No endorsements means you cannot legally drive commercial vehicles, motorcycles, or vehicles carrying passengers for hire. Restriction B means you must wear corrective lenses (glasses or contacts) every time you drive. If you drive without them, you can be cited.
Can I drive a motorcycle with just a Class D license?
No. You need either a Class M license or an M endorsement on your Class D license, depending on your state. Driving a motorcycle without the correct class or endorsement is illegal, even if you own the motorcycle and are on private property. You must pass a written test and road test to earn the M class or endorsement.
What happens if I drive a vehicle my license does not permit?
You can be cited for driving without the proper class or endorsement. The penalty varies by state but usually includes a fine and points on your record. Your insurance may also deny a claim if you were driving an unauthorized vehicle type at the time of an accident.
How do I add an endorsement to my license?
Visit your state's DMV office and request the endorsement you want. You will take a written test on the rules for that vehicle type, and you may need to pass a road test in the actual vehicle. Some endorsements also require a background check or medical exam. The cost and timeline vary by state and endorsement type.
Can I remove a restriction from my license?
Yes, but only if you no longer meet the condition that caused it. For example, if you have restriction B (corrective lenses) and your vision improves, you can take a new vision test at the DMV. If you pass without correction, the restriction can be removed. Other restrictions may require a medical exam or a letter from a doctor.