Official Hobby Components Online Store | Buy Electronic Kits, Components, Boards, Shields, Modules

40-Pin 2.54mm Pin Headers: Colour and Length Buying Guide

40-Pin 2.54mm Pin Headers: Colour and Length Buying Guide

By Official Hobby Components Online Store | Buy Electronic Kits, Components, Boards, Shields, Modules | Published: 2026-10-31

Category: How-to Guides

Learn how to choose single row 40-pin 2.54mm pin headers by colour, length, and breakaway needs. Includes decision rules for Arduino and PCB projects.

Quick answer

For most hobby projects, buy a 40-pin single row 2.54mm pitch header in the colour that matches your wiring plan, then snap it to the exact length you need. Colour is cosmetic; length and pitch determine fit.

Why colour matters less than you think

The colour of a pin header does not change its electrical performance. Red, blue, yellow, white, and black headers all use the same 2.54mm pitch and 40-pin strip format. Colour is useful for coding connections—for example, using red for power and black for ground—but it should not be your first selection criterion.

If you are building a permanent installation, choose a colour that matches your enclosure or label scheme. For breadboarding, any colour works, but having multiple colours can help you trace signals quickly.

Length selection: snap, don't cut

These headers are designed to be snapped into smaller lengths. You can break a 40-pin strip into two 20-pin, four 10-pin, or any combination you need. This is faster and cleaner than cutting with a saw, which can damage the plastic and leave rough edges.

Plan your lengths before snapping. Once separated, you cannot rejoin them. If you need a custom length, score the break point with a sharp knife and snap along a straight edge. Wear eye protection—small plastic fragments can fly.

Pitch and fit: the 2.54mm standard

2.54mm (0.1 inch) pitch is the standard spacing for breadboards, Arduino shields, and most through-hole prototyping boards. Before buying, check that your board or connector uses this pitch. A 2.54mm header will not fit a 2.0mm or 1.27mm footprint.

For Arduino projects, these headers mate with standard female headers and breadboard sockets. If you are soldering directly to a PCB, verify the drill hole diameter and pad spacing match the 2.54mm grid.

When to choose a different header

If you need a right-angle header, a dual-row header, or a shrouded header, this single row straight header is not the right part. Similarly, if you need a specific pin length (e.g., extra-long pins for stacking), check the specification—pin length is not listed for this product, so confirm with the store if that matters.

For high-vibration environments, consider a locking header or a connector with a latch. These breakaway headers rely on friction fit and are not ideal for applications where the connection may work loose.

Decision rules for buying 40-pin headers

  • Choose by pitch first: Confirm your board or connector uses 2.54mm (0.1") pitch. If it does not, this header will not fit—look for the correct pitch instead. Measure the distance between pin centres before ordering.
  • Choose colour for identification, not performance: Pick a colour that helps you distinguish power, ground, or signal lines. All colours have the same electrical properties. Buy a multi-colour pack if you often wire complex prototypes.
  • Plan your snap lengths: Decide how many pins you need per connection before snapping. Common lengths are 2, 3, 4, 6, 8, 10, 20, and 40 pins. Snap along the break lines with a straight edge. Keep a few full 40-pin strips uncut for future needs.
  • Check pin length if stacking: This product's pin length is not specified. If you need extra-long pins for stacking shields, contact the store to confirm dimensions before buying. For stacking, consider a dedicated stacking header instead.

Product facts

Who this header is for

Best for

  • Breadboard prototyping with standard 2.54mm spacing
  • Arduino projects that need breakaway headers for shields or sensors
  • PCB projects where you need custom-length single row headers

Not for

  • Boards with 2.0mm or 1.27mm pitch
  • Applications requiring right-angle, dual-row, or shrouded headers
  • High-vibration environments where a locking connector is needed

Shop Related Products

Single Row 40-Pin 2.54mm Pitch Pin Header (Red, Blue, Yellow, White or Black)

Single Row 40-Pin 2.54mm Pitch Pin Header (Red, Blue, Yellow, White or Black)

$0.10 $0.17

Shop Now