Model railway lighting: LEDs, resistors and power
Expanding · Two- and three-rail
Benjamin | TrackDrawer.com · published 22 November 2026
LED or bulb?
Older buildings and street lamps often have small incandescent bulbs. They give a warm light, but draw far more current than an LED, get warm and burn out over time. In a building made of card or plastic, that heat is not harmless.
An LED has two properties you need to know:
- An LED has a direction. The long leg (anode) goes to positive, the short one (cathode) to negative. The other way round it stays dark.
- An LED always needs a resistor. Without one it draws as much current as the supply can deliver, and it is gone within a second.
If you want the warm light of old, choose warm white LEDs. Cool white quickly makes a village look like a petrol station.
Working out the series resistor
The formula is simple: resistance in ohms = (supply voltage minus LED voltage) / current in amps. A white LED needs about 3 V, a red one about 2 V. For a house or a street lamp, 5 to 10 mA is usually enough; more mostly adds heat and a glare that does not look right in scale.
| Supply | LED | Target current | Calculated | Resistor chosen | Actual current |
|---|---|---|---|---|---|
| 12 V DC | white, 3 V | 10 mA | 900 ohm | 1 kilohm | 9 mA |
| 12 V DC | red, 2 V | 10 mA | 1000 ohm | 1 kilohm | 10 mA |
| 16 V AC | white, 3 V | 10 mA | 1300 ohm | 1.5 kilohm | 8.7 mA |
| 16 V AC | red, 2 V | 10 mA | 1400 ohm | 1.5 kilohm | 9.3 mA |
When in doubt, take the next larger resistor in the series: the LED then glows slightly dimmer, never too bright. The power in the resistor is small: at 16 V and 8.7 mA about 0.11 watt, so an ordinary quarter watt resistor will do.
AC supply: add a diode
Many transformers have an output for lighting and accessories at about 16 V AC. On Märklin transformers it traditionally comes from the yellow and brown terminals. An LED on AC only lights during the half cycle in which the current flows the right way, and in the other half it sees a reverse voltage that can be higher than it tolerates. So place an ordinary diode, such as a 1N4148, in reverse parallel across the LED. How DC and AC differ on a layout in other respects is covered in DC and AC.
How much current does your lighting need?
Add up all the LEDs and multiply by the current per LED. Forty LEDs at 10 mA together need 400 mA. A 1 A supply then has plenty in reserve, even when a church and a few more street lamps join later. LED strips and bulbs count far more heavily; check the stated current for each.
A few practical rules:
- A separate supply for the lights. On an analogue layout the track voltage depends on the speed, so lights fed from the track brighten and dim with the train. On a digital layout the track voltage is steady, but every LED you tap from it comes off the power of your command station or booster.
- A bus under the baseboard. Run a heavy wire for positive and negative along the whole layout, and connect each building to it with a short drop. Then you can unplug one house without disturbing the rest.
- A colour of its own. Use a wire colour for lighting that you use nowhere else. How to set up a colour code is in wiring: colours and feeders.
- A switch per group. Switching street lights, houses and the station separately turns an evening run into a real evening.
Lighting in your track plan
Plan the lighting together with the track, not afterwards. Holes for cables through the baseboard are best drilled before the track goes down.
- Mark the holes. Print your TrackDrawer plan at full size (all tiles with Pro) and lay it on the baseboard. Then you see where a station, a platform or a street lamp will go, and drill the cable holes there.
- Buildings on the plan. With Pro you place houses, platforms and tunnels on the plan. That way you account for their size and see whether there is room for a lamp between the track and the facade.
- Outside the train's clearance. A lamp or post beside the track must stand outside the clearance of the trains. In a curve the ends of long coaches swing out further, so set lamps a little further from the track there.
- Signals and buffer stops. Colour light signals such as the 76391 and 76393 for Märklin C track appear in the TrackDrawer digital diagram with their stop section; more on how they work in signals on a model railway. The illuminated buffer stop 24978 is an ordinary 82.5 mm end piece in your plan, with a lamp that you connect to the lighting supply.
If you run digital, you can also switch the lighting from the command station, for example with an accessory decoder with relays. The street lights then come on at the touch of a button, or automatically when the train pulls into the station.
A winter evening on the layout
Lighting makes the biggest difference on a layout at dusk: a station with lit platforms, houses where a room glows here and there, a row of lamps along the road. Do not light everything at once. A few dark windows make a village more believable than a street where every house is fully lit. If you are building a Christmas village with a train, also read a Christmas village with a train.
Frequently asked questions
Can I connect LEDs straight to the track?
On an analogue layout, better not: the voltage changes with speed and direction. On a digital layout it works with a resistor and a rectifier, but every LED then takes power away from your trains. A separate supply is simpler and more reliable.
Which resistor do I use for a white LED on 16 V?
At 10 mA you get (16 - 3) / 0.010 = 1300 ohm. Take 1.5 kilohm, put a diode in reverse parallel across the LED, and it lights at about 8.7 mA.
Try it yourself
Draw your layout in the app, add your buildings and print the plan at full size to mark the holes for the lighting.