How to Wire a Model Railway: A Beginner-Friendly Layout Guide
Learning how to wire a model railway is easier when the electrical plan is drawn before track and scenery hide the working area. Choose the control system, divide the layout into logical sections, plan the railway bus wire and feeders, then test each stage before moving on.
These model train wiring basics apply to small DC layouts and expandable DCC layouts, but the exact wire size, protection and connection method must follow the chosen equipment. Hobbyco's model railway collection includes track, controllers, digital equipment, decoders and accessories across several scales and systems.
TL;DR
-
Draw the track plan and electrical sections before drilling the baseboard or fixing track permanently.
-
DC controls locomotives through rail voltage and polarity. DCC sends digital packets to a decoder in each locomotive.
-
A railway bus wire with short feeders can reduce reliance on rail joiners and make voltage distribution more consistent.
-
Use one consistent Rail A and Rail B colour convention. Do not define polarity by train direction.
-
Isolate reverse loops, DC blocks, power districts and special turnout arrangements where the design requires it.
-
The model train wiring basics are simple: use approved power equipment, protect against shorts, label every circuit and test before adding scenery.
Choose DC or DCC Before Planning the Wiring
Both systems deliver power through the rails, but they control locomotives differently. The choice affects block switches, decoders, programming arrangements and future expansion.
|
Feature |
Analogue DC |
Digital Command Control |
|---|---|---|
|
Locomotive control |
Rail voltage and polarity control the powered section |
Digital packets address a decoder in each fitted locomotive |
|
Multiple trains |
Independent operation requires isolated blocks and cab selection |
Decoder-equipped locomotives can be controlled independently on the same powered section |
|
Bus and feeders |
Useful for distributing power to blocks |
Useful for distributing track power and the digital signal |
|
Electrical gaps |
Used for blocks, reverse loops and selected sidings |
Used for reverse loops, districts, detection and product-specific arrangements |
|
Programming |
Not applicable |
Method varies; some systems use an isolated programming track |
|
Accessories |
Separate switches or supplies as required |
Conventional switches or compatible accessory decoders |
DCC track power is a bipolar digital waveform, not ordinary household AC. Track voltage and current capacity vary by command station, booster, scale and settings. Never apply a generic voltage figure to every system.
If the baseboard, track plan and operating concept are still undecided, start with Hobbyco's guide to building a model railway from scratch before finalising the electrical drawing.
Plan the Railway Bus Wire and Feeders

What the bus does
The main track bus is a pair of conductors beneath the baseboard. One conductor connects to Rail A and the other to Rail B. Short feeder wires connect the rails to the bus. This arrangement reduces dependence on rail joiners as long-term electrical contacts and gives faults clear places to test.
How to choose wire size
There is no universal wire gauge for every railway bus wire. Required conductor size depends on copper or another material, maximum system current, total run length, scale, expected load and acceptable voltage drop. Use the controller or DCC manufacturer's table for the actual layout.
For context, NCE publishes different recommendations by scale and bus length. Its guidance assumes a copper bus and a stated current limit, which is why copying one gauge into a different system can be misleading. Feeders can normally be smaller than the bus because they are short, but they must still suit the circuit protection.
How many feeders to install
Feeder spacing is also system-specific. Some manufacturers recommend a feeder to every piece of sectional track, while other layouts use feeders at measured intervals or around problem areas. Add feeders before ballasting, and do not assume a metal rail joiner will remain a perfect conductor indefinitely.
Tools, Connections and Low-Voltage Safety

-
A controller, command station or booster approved for the intended scale and system
-
Copper wire sized from the equipment maker's current and distance guidance
-
Wire strippers, small pliers and a multimeter
-
Terminal blocks, crimp connectors or soldered joints protected against strain and shorts
-
Insulated rail joiners and gaps for the planned electrical sections
-
Labels, cable clips and heat-shrink tubing
A temperature-controlled soldering iron can make compact rail and feeder joints, but soldering is not the only reliable option. Properly rated terminal blocks, crimp connectors and manufacturer-approved connectors can also work when installed securely and left accessible.
Keep mains power outside the hobby wiring
Use an approved plug pack or power supply exactly as directed. Do not open, modify or hard-wire the mains side of a controller or power supply. Any fixed 230-volt work in Australia belongs with a licensed electrician. Disconnect power before changing layout wiring.
How to Wire a Model Railway Step by Step

1. Draw the electrical plan
Mark Rail A and Rail B, controller location, bus route, feeders, turnout frogs, reverse loops, DC blocks, power districts, programming track and accessory circuits. Keep the drawing with the layout for later fault-finding.
2. Build a small test section
Connect one short section of track using the selected controller, wire and connectors. Test a locomotive, direction control and short-circuit protection before repeating the method across the baseboard.
3. Install and label the bus
Route the bus where it remains accessible, supported and clear of screws, moving point mechanisms and sharp edges. Keep Rail A and Rail B colours consistent. Label both ends and every branch.
4. Add feeders to the rails
Attach short feeder wires using a method suitable for the track. Avoid excess solder near moving blades or plastic sleepers. Connect each feeder to the correct bus conductor and check it before moving to the next one.
5. Create required gaps and sections
Install insulated joiners or cut stable gaps where the plan calls for them. DC blocks normally isolate the rails needed for cab control. Reverse loops create opposing rail connections and require a switching method or compatible auto-reverser. Follow the chosen system's diagram.
6. Wire turnouts according to their design
Turnout wiring varies between insulated-frog, powered-frog and route-selecting products. A powered frog may improve pickup for short locomotives, but its polarity must switch with the route. Use the turnout maker's instructions rather than a generic diagram.
7. Test before scenery
Check for unintended continuity with power disconnected. Then energise the layout and measure track voltage using the method recommended for the system. Run a locomotive slowly through every route and test fault protection at manufacturer-approved points before ballasting or covering wiring.
DC Blocks, DCC Districts and Reverse Loops
DC blocks
An analogue block is an isolated track section assigned to a controller or switched off. Divide the railway according to how trains will be operated, such as station roads, loops, sidings and depots. Use switches rated for the controller output and prevent two controllers from being connected together unintentionally.
DCC power districts
DCC does not need blocks merely to choose which throttle controls a locomotive. Larger layouts can still use double-gapped power districts with circuit breakers or boosters. Districts help contain faults and divide load, but their design must match the command station and booster documentation.
Reverse loops
A reverse loop connects a rail back to the opposite rail and will short unless the reversing section is isolated and switched. DC layouts can use an appropriate manual polarity-switching arrangement. DCC layouts often use a compatible auto-reverser. Gap placement and minimum section length depend on the track plan and train length.
Programming Tracks and Decoder Compatibility

Some DCC systems provide a dedicated programming output for service-mode programming. If used, the programming track must be isolated so its rails cannot bridge to the main output. Other systems support programming on the main or use a different procedure, so follow the command station manual.
Decoder interfaces include 6-pin NEM 651, 8-pin NEM 652, Next18 and 21MTC, among others. A locomotive's scale does not determine the socket by itself. Confirm the interface, motor current, available space, functions and speaker requirements before choosing a decoder.
Accessory Wiring for Points, Signals and Lighting

Accessories can use conventional switches, accessory decoders or both. Keep their wiring separate from the track bus unless the equipment instructions specify a connection. A dedicated supply can prevent point-motor surges or lighting loads from affecting trains, but its voltage, current and AC or DC output must match every device.
-
Solenoid point motors need a brief switching pulse and may use a compatible capacitor-discharge unit.
-
Slow-action motors require the voltage, polarity and switching method stated by their manufacturer.
-
LEDs need correct polarity and current limiting unless the product includes it.
-
Signals can need common-anode, common-cathode or product-specific wiring.
-
Accessory decoders must support the device type and electrical load.
Testing and Troubleshooting

Test with power disconnected first
Use continuity mode to check intended paths, gaps and accidental Rail A-to-Rail B connections before connecting the controller. Disconnect sensitive electronics when the manufacturer's instructions require it.
Test in small sections
Connect one district or block at a time. If the controller reports a short, the latest section is the first place to inspect. Record measured values and label corrected connections.
Do not assume every stall is wiring
A locomotive can stall because of dirty rail, dirty wheels, limited pickup, an unpowered frog, mechanical binding or a poor connection. Compare track measurements on both sides of the problem, then inspect the locomotive and turnout.
Common Wiring Mistakes
-
Connecting DC and DCC controller outputs together, even briefly.
-
Using train direction to define wire colours instead of fixed Rail A and Rail B conductors.
-
Copying a wire gauge without checking current, length, material and system guidance.
-
Hiding joints, switches or terminal blocks where they cannot be inspected.
-
Using one generic supply for accessories with different voltage or AC/DC requirements.
-
Adding scenery before every route, turnout, block and protection device has been tested.
-
Leaving wiring unsupported where it can snag, flex or touch sharp screws.
Things to Know
-
Reliable rail joiners are useful for alignment, but permanent layouts benefit from planned feeders rather than relying on every joiner alone.
-
Circuit protection must suit the wire and expected current so a short shuts the system down promptly.
-
A DCC booster adds capacity or another district; it does not correct poor feeders or undersized wiring.
-
Block detection, signalling and computer control can require additional gaps and modules beyond a basic running layout.
-
Keep an updated wiring diagram under the baseboard or in the layout folder.
Frequently Asked Questions
Q: What wire gauge should I use for model railway wiring?
Choose the bus from the controller or DCC manufacturer's guidance for copper wire, maximum current, run length and scale. Feeders can usually be smaller because they are short. For example, NCE publishes different bus and feeder sizes by scale and distance under stated assumptions. Treat that as system guidance, not a universal rule, and size the railway bus wire so the protection device can clear a fault reliably.
Q: Can I mix analogue and DCC on the same layout?
Separate DC and DCC sections are possible only with a design that prevents the two controller outputs from ever being connected together. Use complete electrical isolation or a correctly rated break-before-make changeover arrangement approved for the equipment. Do not move a locomotive across a live boundary, and do not improvise the switching.
Q: Why does my locomotive stall at certain points on the track?
Check rail and wheel cleanliness, wheel pickups, joiners, feeders, turnout frogs and mechanical freedom. Measure the track on both sides of the stall using a meter suitable for the control system. A stall at one location can be electrical or mechanical, so confirm the cause before adding another wire.
Q: How many droppers do I need per section of track?
There is no fixed number for every layout. Follow the track and control-system maker's feeder guidance, then add feeders where joiners, long runs, turnouts or measured voltage drop justify them. NCE recommends frequent feeders for reliable DCC operation, while another system may specify a different interval.
Q: Do I need a separate power supply for accessories like signals and point motors?
Often, but not automatically. A separate compatible supply can isolate accessory loads from the track circuit. Match the required voltage, current, polarity and AC or DC output for each signal, light, point motor or decoder. Never assume all accessories use 12V, and never connect supply outputs together unless the manufacturer permits it.
Build Reliability Into the Layout From the Start
The practical answer to how to wire a model railway is to design, label and test in small stages. Keep Rail A and Rail B consistent, size the railway bus wire from the chosen system's limits, add accessible feeders and isolate only the sections the track plan requires.
Once these model train wiring basics are in place, later scenery and expansion become easier. Keep the diagram current, use approved power equipment and return to the manufacturer instructions whenever a turnout, decoder or accessory does not match the general method.


