The basic difference between diesel and electric locomotives
A diesel locomotive carries its own fuel and burns it in an engine to create power. An electric locomotive draws power from overhead wires or a third rail and has no onboard fuel tank. That single difference shapes everything else about how they operate, what they cost to run, and where railroads use them.
Diesel locomotives are self-contained — they can run anywhere there are tracks. Electric locomotives need infrastructure: the wires or rails that supply power must already be in place. This is why you see electric trains in dense cities and long commuter corridors, and diesel locomotives on freight lines that cross remote territory.
Neither type is inherently "better." Each solves a different problem. Understanding which one you are looking at, and why a railroad chose it, requires knowing what each one does well and what it costs.
Key Takeaways
- Diesel locomotives carry fuel onboard and work anywhere there are tracks, making them the standard for freight railroads and routes that do not have electrified infrastructure.
- Electric locomotives draw power from overhead wires or a third rail and produce zero emissions at the point of use, which is why commuter and urban transit systems use them.
- Diesel locomotives are cheaper to buy but expensive to fuel and maintain; electric locomotives cost more upfront but are cheaper to operate once the power lines are installed.
- A diesel locomotive uses a diesel engine connected to an electrical generator, which then powers electric motors — most modern diesel locomotives are actually diesel-electric hybrids.
- Electric locomotives can accelerate faster and more smoothly than diesel, which matters for frequent stops in cities but less for freight trains that run long distances at steady speed.
How a diesel locomotive actually works
A diesel locomotive does not use the diesel engine to turn the wheels directly. Instead, the diesel engine powers a large electrical generator or alternator. That generator produces electricity, which then drives electric motors connected to the wheels. This design is called diesel-electric, and it has been the standard since the mid-1900s.
The reason for this indirect path is efficiency and control. A diesel engine runs best at a steady speed and high load. A train needs to start from a stop, accelerate smoothly, climb hills, and brake hard — none of which a diesel engine alone can do well. The electrical system in between lets the engineer control power delivery to the wheels precisely, without the engine having to change speed.
Diesel locomotives carry fuel in large tanks built into the frame. A typical freight locomotive might carry 4,000 gallons or more. The engine burns that fuel continuously while the train is moving, and the generator converts the combustion energy into electricity. When the train stops, the engine idles or shuts down.
The exhaust from the diesel engine contains nitrogen oxides and particulate matter. This is why diesel locomotives are restricted in some urban areas and why railroads have been retrofitting older locomotives with emissions-control equipment.
How an electric locomotive works
An electric locomotive has no engine and no fuel tank. Instead, it has a pantograph — a hinged arm on the roof that reaches up and touches an overhead wire, or a shoe that slides along a third rail mounted between or beside the tracks. Either way, electrical current flows from that infrastructure into the locomotive.
Inside the locomotive, transformers and power electronics convert that current into the right voltage and type for the electric motors that drive the wheels. The engineer controls how much power flows to those motors, just as in a diesel-electric locomotive, but the source is external rather than onboard.
Because there is no combustion, there is no exhaust at the point of use. The locomotive produces no emissions where it runs. Where the electricity comes from — coal plants, natural gas, wind, solar, or nuclear — determines the overall environmental impact, but that happens miles away from the tracks.
Electric locomotives can deliver maximum power when ready, from a complete stop. This makes them ideal for commuter trains that stop frequently and need to accelerate quickly. A diesel locomotive takes time to build power; an electric one does not.
Why railroads choose diesel for freight
Freight railroads operate over thousands of miles of track, much of it in rural areas where there is no city power grid nearby. Electrifying that much track would cost billions of dollars and take decades. A diesel locomotive can be fueled at a depot and run for hundreds of miles without refueling.
Freight trains also run at relatively steady speeds over long distances. A diesel locomotive is efficient at this task. The engine runs at a constant RPM, the generator produces steady power, and the train rolls. There is no need for the rapid acceleration and frequent stops that favor electric locomotives.
Diesel locomotives are also cheaper to buy than electric ones. A new diesel-electric freight locomotive costs several million dollars. The upfront cost of an electric locomotive is higher, and you must also build or upgrade the power infrastructure — a cost that only makes sense if you are running many trains over the same route, year after year.
Why cities and commuter systems use electric trains
A commuter railroad running between a city and suburbs might operate the same route 50 times a day, with trains stopping every few miles. Electrifying that corridor costs money upfront, but the trains run so frequently that the fuel savings add up quickly. After a few years, the electric system pays for itself.
Electric trains also accelerate faster and brake more smoothly, which matters when you are stopping every 2 or 3 miles. Passengers feel less jerking around. The trains can move more people per hour because they spend less time accelerating between stops.
Cities also prefer electric trains because there is no diesel exhaust on the platform or in the tunnel. Diesel fumes in a subway station are a real problem for workers and passengers who spend hours there daily. Electric trains eliminate that entirely.
Many urban transit systems use a third rail rather than overhead wires. The third rail is mounted low, between or beside the running rails, and the locomotive has a shoe that slides along it. This keeps the overhead clear, which matters in cities with low bridges or dense overhead infrastructure.
The cost difference between diesel and electric
A new diesel-electric locomotive costs roughly $2 million to $3 million, depending on size and features. A new electric locomotive costs more — roughly $3 million to $5 million — because it has more complex power electronics and no engine to simplify the design.
But the operating cost tells a different story. Diesel fuel is expensive, and a freight locomotive burns hundreds of gallons per day. Electricity is cheaper per unit of energy, and electric locomotives convert it to motion more efficiently. Over a 30-year lifespan, an electric locomotive costs far less to run.
The catch is infrastructure. Electrifying a route requires installing wires or rails, substations to step down voltage from the main grid, and maintenance facilities. This can cost tens of millions of dollars for a 100-mile corridor. That investment only makes sense if you are running enough trains to justify it — which is why you see electrified track in dense corridors and diesel locomotives everywhere else.
Where you see each type today
Diesel locomotives dominate freight railroads in North America. Almost all cargo trains use diesel-electric locomotives because freight routes are long, sparse, and spread across the continent. Electrifying them would be impractical.
Electric trains are standard in Europe, Japan, and many other regions where population density is higher and commuter corridors are heavily used. Many European freight lines are also electrified, which is less common in North America.
In the United States, commuter railroads around major cities — the Northeast Corridor, the San Francisco Bay Area, Chicago, and others — use electric trains. Amtrak's Northeast Regional trains are electric. Most other Amtrak routes use diesel locomotives because they run across less densely populated territory.
Some newer systems use hybrid or battery-electric locomotives for short routes or yard work, where the cost of electrification is not justified but the environmental benefit of zero emissions is important. These are still rare but growing.
Frequently Asked Questions
Can a diesel locomotive run on electric tracks or vice versa?
No. A diesel locomotive has no pantograph or third-rail shoe, so it cannot connect to overhead wires or rails. An electric locomotive has no engine or fuel tank, so it cannot run without power infrastructure. They are designed for their specific environment and cannot switch.
Why do some trains have both diesel and electric locomotives?
A train might use an electric locomotive on an electrified route and switch to a diesel locomotive for the non-electrified portion. This requires a crew change and takes time, so it is done at major junctions. Some railroads are experimenting with dual-power locomotives that can run on either diesel or electricity, but these are still uncommon.
Are electric trains faster than diesel trains?
Electric trains can accelerate faster, which makes them quicker for frequent stops. For long-distance travel at steady speed, the difference is small. A freight train running at 60 miles per hour uses roughly the same time whether it is diesel or electric. A commuter train stopping every few miles will be noticeably faster if it is electric.
Do electric trains produce any pollution?
Electric trains produce zero emissions where they run. The pollution depends on how the electricity was generated — a coal plant produces emissions, while wind or solar does not. Overall, electric trains powered by renewable energy are cleaner than diesel, but the comparison depends on the power source.
Why hasn't the United States electrified more freight routes?
Freight routes are long and spread across the country, often through rural areas with low traffic density. The cost of electrifying thousands of miles of track is enormous, and the fuel savings would take decades to recoup. Diesel locomotives are cheaper to buy and work anywhere, so they remain the standard for freight.