Your driver license code is a letter or number printed on your license that describes what vehicles you are legally allowed to drive

Every state uses a code system to show which types of vehicles a license holder can operate. The code appears on your physical license card, usually in a box labeled "Class" or "Restrictions." A code of "D" might mean you can drive a regular passenger car, while "A" might mean you can drive a motorcycle. The specific codes and what they permit vary by state — what counts as a Class B license in one state may not exist in another.

Understanding your code matters because driving a vehicle outside your license class is illegal, even if you are a skilled driver. It can result in a ticket, fines, points on your driving record, and in some cases suspension of your license. Insurance companies also use these codes to determine whether your coverage applies to the vehicle you were driving at the time of an accident.

Key Takeaways

  • Your driver license code tells you which vehicle types you are legally permitted to operate, and it varies by state.
  • Common codes include Class D for regular cars, Class M for motorcycles, and Class C for commercial vehicles, but each state defines these differently.
  • Driving outside your license class is a violation that can result in fines, points, and license suspension.
  • You can find your code on the front or back of your physical license card in a section labeled "Class" or "Restrictions."

How states organize driver license codes

Most states use a letter-based system, though a few use numbers. The most common structure divides licenses into a primary class (the main vehicle type you can drive) and then adds restriction codes if needed. For example, your license might show "Class D" as the primary class, meaning standard passenger vehicles, and then list restrictions like "Corrective lenses required" or "No highway driving."

The primary classes differ by state. In many states, Class A covers heavy trucks and tractor-trailers, Class B covers medium trucks, Class C covers regular cars and light trucks, and Class M covers motorcycles. Some states use a different letter order or add extra classes for vehicles like mopeds or farm equipment. Your state's Department of Motor Vehicles (DMV) website lists the exact definitions for your state.

What different license codes permit you to drive

A Class D or Class 5 license (the names vary) typically covers what most people think of as regular driving: sedans, SUVs, pickup trucks under a certain weight, and vans. This is the standard license most people receive when they pass their driving test.

A Class A or Class 1 license covers commercial trucks, tractor-trailers, and vehicles that require a Commercial Driver License (CDL). Obtaining this class requires additional testing, medical certification, and often professional training. Class B or Class 2 covers medium-duty trucks and buses. Class M or Motorcycle covers two-wheeled and three-wheeled motorcycles and requires a separate endorsement or test in most states.

Restriction codes appear alongside your primary class and limit when or how you can drive. Common restrictions include "Corrective lenses required," "Automatic transmission only," "No night driving," or "Daylight hours only." Some restrictions are temporary — for example, a new driver might have a restriction that expires after a certain age or time period.

Where to find your license code

Your code appears on your physical driver license card. On the front, look for a box labeled "Class," "License Class," or sometimes just a letter or number by itself. On the back, you may see additional restriction codes listed, often abbreviated (like "B" for "Corrective lenses" or "E" for "Automatic transmission only"). The exact location and format depend on your state.

If you cannot find your code on the card itself, your state's DMV website usually displays a sample license showing where each piece of information appears. You can also call your local DMV office or check your online driving record through your state's DMV portal — most states now allow you to view your record digitally.

What happens if you drive outside your license class

Driving a vehicle type not permitted by your license class is a moving violation in every state. The penalty typically includes a fine (ranging from $50 to several hundred dollars depending on the state), points added to your driving record, and possible license suspension. If you cause an accident while driving outside your class, your insurance may deny your claim, leaving you personally liable for damages.

The violation also appears on your permanent driving record, which affects your insurance rates and can complicate future employment if your job involves driving. Some employers run background checks that include driving records, and a violation can disqualify you from positions requiring a clean record.

How to change or add to your license class

If you want to drive a vehicle type not covered by your current license, you must take a test and pay a fee to add that class or upgrade to a higher one. For a motorcycle endorsement (Class M), you typically take a written test and a riding skills test, though some states allow you to skip the riding test if you complete an approved motorcycle safety course. For a commercial license (Class A or B), you must pass a written test, a skills test, and a medical examination, and you may need to provide proof of training.

The process and cost vary by state. Some states allow you to add a class without retesting your basic driving skills; others require a full retest. Contact your state's DMV to learn what tests and documents you need for the class you want to add. Many DMVs let you schedule tests online or by phone.

Why insurance companies care about your license code

When you file a claim, your insurance company checks your license code against the vehicle you were driving. If you were operating a vehicle outside your licensed class, the company may deny coverage. For example, if your license shows Class D (passenger vehicles only) and you were driving a commercial truck, the insurer can refuse to pay for damage or injuries, even if the accident was not your fault.

This is why it is important to know your code before you borrow or rent a vehicle. If someone asks you to drive their truck or motorcycle and your license does not cover it, you are not only breaking the law — you are also uninsured if something goes wrong.

Frequently Asked Questions

What does it mean if my license shows multiple codes?

Multiple codes usually mean you hold more than one license class. For example, you might have Class D (regular cars) and Class M (motorcycles). Each code represents a separate vehicle type you are permitted to drive. Some states also list endorsements separately from restrictions — an endorsement adds permission, while a restriction limits it.

Can I drive a rental car if my license class doesn't match?

No. Your license class must match the vehicle type you are driving, regardless of whether you own it or rent it. If you rent a vehicle outside your class, you are driving illegally and your insurance will not cover you. Always check your license code before renting.

Do I need a different license class to drive an electric car?

No. Electric cars are classified the same way as gasoline-powered cars. If your license covers regular passenger vehicles (usually Class D or Class 5), you can drive an electric car without any additional test or endorsement.

What if I got a ticket for driving outside my license class?

This is a moving violation. You can pay the fine, contest it in traffic court, or in some cases request a defensive driving course to reduce points. Contact the court listed on your ticket to learn your options. Having the correct license class going forward will prevent future violations.

How long does it take to add a new class to my license?

The timeline depends on your state and which class you are adding. A motorcycle endorsement might take one to two weeks after you pass the test. A commercial license can take several weeks because it requires a medical examination and background check. Contact your state's DMV for the specific timeline in your area.