Buying guide · Beginner · 3 min read
Pin Headers and Female Headers
2.54, 2.0 and 1.27 mm Pitch, Straight and Right Angle, 1-Row and 2-Row
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Pin headers are the standard way to plug boards together. Choose the pitch (2.54 mm is the breadboard standard; 2.0 and 1.27 mm are smaller), the rows and pin count, and the style: straight or right angle, male pin or female socket. Use female sockets on a board to let a module plug in and out.
Key specs at a glance
- Pitches
- 2.54 mm (0.1 inch), 2.0 mm, 1.27 mm and 5 mm
- Rows
- 1 row (1 x N) and 2 rows (2 x N), from 2 to 40 pins
- Styles
- Straight, right angle, male pin header, female socket
- Makers
- CONNFLY, XUNPU, HANBO, CJT, JST
Choose the pitch
2.54 mm is the standard for breadboards, Arduino and most dev boards; use it when you need to plug into those. 2.0 mm is used on modules such as XBee and ESP-01. 1.27 mm is a fine pitch used on debug and programming ports, such as ARM SWD headers. Never force headers of different pitch together.
Male, female, straight, right angle
A male pin header is a row of pins you solder to a board. A female header is a socket that receives the pins. Straight headers stand up from the board; right angle headers bend over so the cable or board is parallel to the PCB. Double-row (2 x N) headers suit programming ports and wider connections. The listing gives the rows, pins and pitch in the title, for example 2 x 6 (12-pin), 2.54 mm.
| Header | Pitch | Good for |
|---|---|---|
| 1 x N male, straight | 2.54 mm | Dev boards, breadboards, module pins |
| 1 x N female, straight | 2.54 mm | Sockets for modules and sensors |
| 2 x N right angle | 2.54 or 2.0 mm | Programming and debug ports at a board edge |
| 2 x N male | 1.27 mm | Fine-pitch debug headers |
- 1 x N male, straight
- Pitch:
- 2.54 mm
- Good for:
- Dev boards, breadboards, module pins
- 1 x N female, straight
- Pitch:
- 2.54 mm
- Good for:
- Sockets for modules and sensors
- 2 x N right angle
- Pitch:
- 2.54 or 2.0 mm
- Good for:
- Programming and debug ports at a board edge
- 2 x N male
- Pitch:
- 1.27 mm
- Good for:
- Fine-pitch debug headers
Fitting to a board
Insert the header into the board with the short pins through the holes, hold it flat (a breadboard helps), and solder one pin first, then check it is straight before soldering the rest. For long rows, solder the two end pins then the others. Cut longer headers with flush cutters if needed. Use IC or machine-pin sockets where you want a part to be swapped.
Current
Header pins are for signals and small currents (about an amp per pin, depending on the part). For power, use several pins in parallel or a proper power connector. See the connectors guide.
Common mistakes to avoid
- Mixing 2.54 and 2.0 mm parts.
- Soldering a header crooked.
- Using a header pin for high current.
- Ordering straight when right angle is needed.
- Reversing the pin 1 orientation on a 2-row header.
Frequently asked questions
What pitch is a breadboard?
2.54 mm (0.1 inch).
What is a right angle header?
One that bends 90 degrees so the plug lies flat along the board.
How do I solder straight?
Solder one pin, check, fix, then solder the rest.
Can I cut a long header?
Yes, with flush cutters, or choose a breakaway type.
Which header for a programmer?
Use the pitch and pin count named in the chip or tool data sheet, often 2 x 5 at 1.27 or 2.54 mm.
Parts for this guide
Keep learning on Electrolark
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.









