Every number and letter on your driver's license is a code that tells law enforcement, employers, and officials something specific about you and what you're allowed to do on the road
Your driver's license is not just a photo ID — it is a record of your driving privileges, restrictions, and personal information encoded in numbers, letters, and codes. Some of these codes are the same everywhere in the United States; others vary by state. Understanding what they mean helps you know what you can legally drive, what restrictions explore to you, and what information you are actually sharing when you hand over your license.
The codes fall into a few categories: your personal information (name, address, date of birth), your license class or type (what vehicles you can drive), endorsements (special permissions you have earned), and restrictions (limitations on how you can drive). This guide walks through the most common codes you will see and what each one means in practice.
Key Takeaways
- Your license class (usually a letter like A, B, C, or D) determines what size and type of vehicle you are legally allowed to drive.
- Endorsements are marked with letters like M, H, or P and show special permissions — such as the right to drive a motorcycle or tow a trailer — that you have tested for separately.
- Restrictions are also marked with letters and show limitations — such as corrective lenses required, automatic transmission only, or no highway driving — that explore to your license.
- The numbers on your license include your date of birth, license expiration date, and a unique identifier assigned by your state, but not your Social Security number.
- License codes vary significantly by state, so a code that means one thing in California may mean something different in Texas.
License Classes: What Vehicle You Can Drive
The license class is the single most important code on your license because it determines what you are legally allowed to operate. Most states use a letter system (A through D, or sometimes A through E), though a few use numbers. The class you hold depends on the type of vehicle you tested for and passed the road test in.
Class D (or Class 5 in some states) is the standard passenger vehicle license — the one most people get when they pass their road test. It covers cars, small trucks, and vans up to a certain weight. Class C typically covers larger vehicles or allows you to tow a trailer. Class B covers medium trucks and buses. Class A covers the largest trucks and is often called a Commercial Driver's License (CDL) when you are driving for work. If you only have a Class D license and you drive a vehicle that requires a Class B or A license, you are breaking the law, even if you are a skilled driver.
Some states also issue a Class M license specifically for motorcycles, though many states mark motorcycle permission as an endorsement on a regular license instead. The state DMV handbook for your state will list exactly what each class covers in your state — the definitions are not identical everywhere.
Endorsements: Special Permissions You Have Earned
Endorsements are marked with letters and show that you have passed an additional test or met extra requirements beyond your basic license class. They are permissions you have earned, not restrictions placed on you. Common endorsements include:
- M — Motorcycle. You passed a separate motorcycle skills test and can operate a motorcycle.
- H — Hazmat. You passed a background check and written test to transport hazardous materials.
- P — Passenger. You passed an additional test to carry passengers for pay (often required for rideshare or taxi drivers).
- T — Tractor-trailer. You passed a test to operate a tractor-trailer combination.
- N — Tank vehicle. You passed a test to transport liquids in bulk.
If you want to do something your license does not endorse — such as drive for a rideshare company when you do not have a P endorsement, or operate a motorcycle when you do not have an M — you will need to take the written test and sometimes a skills test for that endorsement. Your state's DMV website lists the requirements for each endorsement.
Restrictions: Limitations on Your Driving
Restrictions are codes that show you have a limitation on how or when you can drive. Unlike endorsements, restrictions are limitations, not permissions. They are placed on your license for safety reasons or because of a condition you reported during the licensing process. Common restrictions include:
- B — Corrective lenses required. You must wear glasses or contacts whenever you drive.
- C — Automatic transmission only. You can only drive vehicles with automatic transmissions, not manual.
- D — Daylight driving only. You are not permitted to drive between sunset and sunrise.
- E — No highway driving. You can only drive on local roads, not interstate highways.
- F — No passengers under a certain age. Common for young drivers in states with graduated licensing laws.
- I — Ignition interlock device required. You must use a device that tests your breath before the car will start.
Restrictions are often placed on young drivers as part of a graduated licensing system, or on drivers who have had violations or medical conditions. If you have a restriction and you violate it — for example, driving at night when you have a daylight-only restriction — you can be cited and fined. If you believe a restriction no longer applies to you (for example, you had vision correction surgery), you can request that it be removed by visiting your DMV and providing documentation.
The Numbers: Birth Date, Expiration, and License ID
The numbers on your license serve different purposes. Your date of birth appears in full on most licenses and is used to verify your age for age-restricted activities like purchasing alcohol or entering certain venues. Your license expiration date tells you when you need to renew. Most states issue licenses that expire between four and eight years after issue, depending on your age and state law.
Your license also carries a unique identifier number assigned by your state — this is not your Social Security number, though some older licenses did include it. This number is how the state tracks your driving record, violations, and points. If you move to a new state, you will get a new identifier number in that state's system.
Some licenses also display an issue date (when the license was issued) and a document number (a security feature used to verify the license is genuine). The exact placement and format of these numbers varies by state.
How State Codes Differ
One of the most important things to understand is that license codes are not uniform across the United States. A restriction marked "D" in one state may mean something completely different in another state. A Class A license in California is not the same as a Class A license in New York. This is why your license is only valid for driving in other states — the codes themselves travel with you — but the specific meaning of those codes depends on your home state.
If you move to a new state, you will eventually need to get a license from that state. When you do, you may find that your endorsements and restrictions do not transfer directly. For example, if you have a motorcycle endorsement in your current state and you move, you will likely need to pass your new state's motorcycle test to get the endorsement in your new state's system. The new state's DMV will tell you what you need to do.
To understand what your specific codes mean, the most reliable source is your state's DMV handbook or website. Most states publish a guide that explains every code used on licenses issued in that state.
Reading Your License: A Practical Example
Imagine your license shows: Class D, Endorsement M, Restriction B. This means you are licensed to drive a standard passenger vehicle (Class D), you have passed the motorcycle test and can operate a motorcycle (Endorsement M), but you must wear corrective lenses whenever you drive (Restriction B). If you do not wear your glasses and a police officer pulls you over, you can be cited for violating your restriction, even if your driving was otherwise safe.
Or imagine your license shows: Class D, Restriction D and E. This means you can only drive during daylight hours and only on local roads — no highways and no night driving. This type of restriction is common for drivers under 18 in states with graduated licensing. If you drive on a highway at night with these restrictions, you are breaking the law.
Your license is a legal document that spells out exactly what you are permitted to do. Reading and understanding your codes ensures you know your rights and your obligations on the road.
Frequently Asked Questions
Does my license number include my Social Security number?
Not on modern licenses. Some older licenses issued before the 1990s did use Social Security numbers as the license number, but this practice has been phased out. Your current license has a unique identifier assigned by your state's DMV, which is separate from your Social Security number.
What happens if I drive a vehicle my license class does not cover?
You are driving without proper licensing, which is a violation. If you are stopped, you can be cited and fined. If you cause an accident while driving an unauthorized vehicle, your insurance may not cover the damage, and you could face additional legal liability.
Can I remove a restriction from my license?
Yes, but it depends on the restriction. Restrictions for medical conditions (like corrective lenses) can be removed if you provide documentation that the condition no longer applies. Restrictions for young drivers typically expire when you reach a certain age. Contact your state's DMV to find out what documentation you need to remove a specific restriction.
If I move to a new state, do my endorsements transfer?
Your endorsements do not automatically transfer to a new state's license. You will need to pass your new state's test for each endorsement you want to keep. Some states have reciprocity agreements that may speed up the process, but you should contact your new state's DMV to find out what is required.
What does it mean if my license says "REAL ID compliant"?
REAL ID is a federal security standard that most states now follow. A REAL ID-compliant license meets federal requirements for identification and can be used for domestic air travel and entry to federal buildings. If your license is not REAL ID-compliant, you will need a passport or other federal ID for air travel. Your state's DMV can tell you whether your license meets REAL ID standards.