Reading the Codes on Your License
Your driver's license contains a series of letters and numbers that tell law enforcement and licensing officials what you are legally permitted to drive and any restrictions that explore to you. These codes appear in different places on your license depending on your state — some are printed as a single line, others in a dedicated box — but they all follow a standardized system that every officer and examiner understands.
The most important codes are your class or type (which vehicle categories you can operate), your endorsements (special permissions like hauling hazmat or driving a school bus), and your restrictions (conditions you must follow, like wearing corrective lenses or not driving at night). Understanding what these mean matters because driving outside your class or without a required endorsement is a violation, even if you are a capable driver.
Every state uses its own letter system for classes and restrictions, so a code that means one thing in California means something different in Texas. This guide covers the most common codes across states and what they restrict or allow you to do.
Key Takeaways
- License classes (usually A, B, C, or D) determine what size and type of vehicle you can legally drive, and driving the wrong class is a traffic violation.
- Endorsements (marked with letters like H, N, or P) grant permission to drive specialized vehicles like motorcycles, buses, or tankers, and you must pass a separate test to earn them.
- Restrictions (marked with numbers or letters like 1, 8, or L) impose conditions such as corrective lenses, no highway driving, or automatic transmission only.
- Your state's DMV handbook lists the exact meaning of every code used in that state, and codes differ between states even when the letters are the same.
- Violating a restriction or driving outside your class can result in fines, points on your record, or license suspension, even if you caused no accident.
License Classes and What They Permit
Your license class defines the heaviest and most complex vehicle you are legally allowed to operate. Most states use a letter system, with Class D or Class C being the standard passenger vehicle license that most people hold. Heavier or more specialized vehicles require a higher class, usually Class A or Class B, and these require additional testing and sometimes commercial driver's license (CDL) training.
A Class D license (or Class C in some states) covers standard cars, pickup trucks, and vans up to a certain weight — typically 26,000 pounds or less. This is what you receive when you pass your standard driving test. A Class A or Class B license is a commercial license required for tractor-trailers, dump trucks, or other heavy vehicles, and obtaining one involves a written exam, a skills test, and a medical certificate. Some states also issue a Class M specifically for motorcycles, while others require a motorcycle endorsement on your regular license instead.
Driving a vehicle heavier or more complex than your class permits is illegal, regardless of your actual skill. For example, operating a semi-truck with only a Class D license is a violation that can result in fines and points, even if you drove safely. Always check your license before renting or borrowing a vehicle.
Endorsements: Special Permissions You Must Earn
An endorsement is a letter code that grants you permission to operate a specific type of vehicle or cargo that your base class does not cover. Endorsements are not automatic — you must pass a written test, and sometimes a practical test, to earn one. Common endorsements include motorcycle (M or H in most states), school bus (S), hazardous materials (H or X), and tanker (N).
The motorcycle endorsement (M or H depending on your state) means you have passed a test on motorcycle operation and safety and are legally permitted to ride a motorcycle or moped. Without this endorsement, operating a motorcycle is a violation even if you own one. Some states allow you to take a motorcycle safety course in place of the written test, which can also waive the riding skills test at the DMV.
A school bus endorsement (S) is required to drive any vehicle carrying passengers for school purposes. A hazmat endorsement (H or X) allows you to transport hazardous materials and requires a background check and fingerprinting in addition to a written test. A tanker endorsement (N) is needed to haul liquid cargo in a tank vehicle. If your job requires any of these endorsements and your license does not show them, you cannot legally perform that work, and your employer cannot assign you to it.
Restrictions: Conditions You Must Follow
A restriction is a condition or limitation printed on your license that you must obey while driving. Restrictions are usually shown as a number or letter code in a dedicated box on your license, and they override your general driving privileges. Common restrictions include corrective lenses (you must wear glasses or contacts), no highway driving, automatic transmission only, and no driving at night.
The most frequent restriction is corrective lenses (often coded as 1 or 8), which means you must wear your glasses or contacts every time you drive. Driving without them when this restriction is on your license is a violation. A no highway driving restriction (often coded as K or similar) limits you to local roads and prohibits interstate or high-speed routes. An automatic transmission only restriction means you cannot operate a manual transmission vehicle — if you learned to drive in an automatic, your license may carry this restriction, and driving a stick shift would be a violation.
Some states impose a no night driving restriction (often coded as N or similar) on new drivers or drivers with certain medical conditions, meaning you cannot operate a vehicle between sunset and sunrise. A no passengers under age 21 restriction (common for teen drivers in many states) limits who can ride with you. Always read your restrictions carefully before driving, because violating one can result in fines and points even if you drove safely and caused no accident.
How States Differ in Their Code Systems
There is no national standard for license codes — each state designs its own system, and the same letter or number can mean different things in different states. For example, the letter H might mean motorcycle endorsement in one state and hazmat endorsement in another. The letter N might mean tanker endorsement in one state and a night driving restriction in another. This variation exists because states manage their own licensing systems and are not required to align their codes.
The only way to know what a code on your license means is to consult your state's DMV handbook or contact your state's DMV directly. Your license itself may not explain the codes — it assumes you learned them during your written test. If you move to a new state and obtain a new license, the codes will change, and you will need to learn the new system. Some states provide a legend on the back of the license or in the DMV handbook; others require you to ask.
If you are unsure what a code on your license means, contact your state DMV before driving. Claiming you did not understand a restriction is not a legal defense if you violate it.
Medical and Age-Related Restrictions
Some restrictions are tied to your age or medical status and may expire or change over time. A medical restriction might limit you to daytime driving, require you to wear a hearing aid, or restrict you to vehicles with hand controls. These restrictions are imposed based on information you provided during your license test or renewal, or based on a medical examination required by your state.
Teen drivers in many states receive graduated restrictions that ease over time as they gain experience. These might include no night driving for the first six months, no passengers under 21 for the first year, or a lower speed limit. These restrictions are temporary and are removed automatically when you reach a certain age or after a set period, but you must follow them while they are in effect.
If your medical condition changes — for example, if you develop vision problems or hearing loss — you may be required to report it to your DMV, and your license may be updated with new restrictions. Driving with a medical condition that your state requires you to report, without reporting it, can result in license suspension or revocation.
What to Do If Your License Has an Error or Unclear Code
If your license shows a code you do not recognize or believe is incorrect, visit your state DMV in person or contact them by phone. Bring your license and any documentation that supports your case — for example, if you believe a corrective lenses restriction was added in error, bring a copy of your vision test results showing you do not need correction.
Correcting a code usually requires filling out a form and may require a new vision or written test, depending on what the error is. The process typically takes one to two weeks, though some states can issue a corrected license on the spot. Do not ignore an incorrect code — driving with a restriction you should not have can still result in a violation if an officer checks your license, even though the restriction is not your fault.
If you are unsure whether a code applies to you, ask the DMV before you drive. It is better to spend 15 minutes on a phone call than to risk a violation or fine.
Frequently Asked Questions
Can I drive a vehicle that is heavier than my license class allows?
No. Driving a vehicle outside your class is a violation regardless of your skill or whether you caused an accident. You must obtain the correct license class before operating that vehicle. If you are caught, you face fines, points on your record, and possible license suspension.
What happens if I drive without a required endorsement?
Driving without a required endorsement — for example, operating a motorcycle without a motorcycle endorsement — is a violation. You can be fined, receive points on your record, and face license suspension. Your insurance may also deny a claim if you were driving without the proper endorsement.
Do I have to follow restrictions if I disagree with them?
Yes. Restrictions are legally binding conditions of your license. Violating a restriction — such as driving at night when night driving is restricted, or driving without corrective lenses when they are required — is a traffic violation, even if you drove safely. If you believe a restriction is wrong, contact your DMV to challenge it, but follow it until it is removed.
Will my restrictions change if I move to a new state?
Yes. When you obtain a new license in a new state, the codes and restrictions will be based on that state's system. Some restrictions may carry over (for example, a medical restriction), but the letter codes will be different. You will need to learn the new state's code system.
How do I know what all the codes on my license mean?
Your state's DMV handbook contains a legend of all codes used in that state. You can also contact your state DMV by phone or visit in person. Do not assume a code means the same thing it meant in another state — always check your current state's system.