How to Build Your Own Mechanical Keyboard in 2026

A step-by-step guide to building a custom mechanical keyboard: the parts you need, how to choose a layout, switches and keycaps, the tools, the build order, and how to set up QMK, VIA or Vial firmware.

19 min read

19 min read

A black and red mechanical keyboard

Key takeaways

  • A custom keyboard is a case, a PCB (the circuit board), a plate, switches, stabilizers and keycaps. A hot-swap PCB lets you build one without soldering.

  • Pick the layout first. A 75% or 65% board keeps the arrow keys and frees desk space for a mouse, tablet or controller.

  • Test the PCB before you build anything on it, install stabilizers before switches, and check that every switch pin is straight.

  • A budget hot-swap build usually costs about $110 to $190 in parts, and a realistic first build lands around $150 to $300.

  • Firmware like QMK, VIA or Vial lets you remap any key and add shortcut layers, which is where a custom board pays off for creative work.

What you need to build a keyboard

Every build uses the same six main parts, and it's easier than it looks. Kits often bundle the first three as a "barebones" board, which leaves you to choose switches and keycaps.

Case

The case holds everything together, and it's the biggest factor in weight and sound. It also decides how the plate and PCB are mounted, which changes how the keys feel (more on that below).

PCB

The printed circuit board registers your key presses. A hot-swap PCB has sockets that take switches without soldering, so you can change switches later. The common sockets are rated for around 100 insertions, which is plenty for a few switch swaps. A solder PCB needs every switch soldered in, and changing one means desoldering it.

Plate

The plate sits above the PCB and holds the switches in place. Builders describe the materials roughly like this, though feel and sound are subjective:

  • Polycarbonate: the most flex and a softer, deeper sound.

  • POM: soft, with a muted sound.

  • FR4: a middle ground and a common first choice.

  • Aluminum: firm, with a brighter sound.

  • Brass: the stiffest and heaviest, with a sharp, solid sound, though descriptions vary.

Switches

Switches come in three main types. Linear switches move smoothly with no bump, tactile switches have a bump you can feel, and clicky switches add an audible click to the bump. Makers list the force needed to press a key in centinewtons (cN) or gram-force (gf), and the two are close enough to compare directly: a light linear switch is around 45.

Switches also come in 3-pin and 5-pin versions. A 3-pin switch fits any MX-style board with a plate. A 5-pin switch has two extra plastic legs, so it only fits a board with holes for them, unless you clip those plastic legs off. Never cut the metal pins.

Magnetic Hall-effect switches, which let you set the actuation point and use rapid trigger, need a PCB built for them. They won't work in a standard hot-swap board.

Stabilizers

Stabilizers keep long keys level: Shift, Enter, Backspace and the spacebar. They come in plate-mount, PCB clip-in and PCB screw-in versions, and screw-in stabilizers are the most secure. Most spacebars are 6.25u wide (u is the width of one standard key), but some boards use 7u, so check your layout before buying.

Keycaps

Keycap profiles set the height and shape of each row. Cherry profile is low and sculpted, OEM is a little taller and is the default on most prebuilt boards, SA is tall with rounded tops, XDA is flat and uniform, and MT3 is tall and deeply dished. ABS plastic starts to look shiny sooner with use, while PBT resists shine for much longer. Make sure the set covers your layout, including ANSI or ISO.

How to choose a layout

Layout is the first decision, because the case, PCB, plate, stabilizers and keycaps all depend on it. Key counts are approximate and vary by board:

Layout

Keys (ANSI)

What you give up

100% (full size)

104

Nothing, but it's the widest

Tenkeyless (TKL)

87

The number pad

75%

about 80 to 84

Number pad, with keys packed tighter

65%

about 68

The function row

60%

about 61

Function row and arrow keys

ISO boards add one key, with a tall Enter and a shorter left Shift. For creative work, a 75% or 65% board is a good balance: you keep the arrow keys for nudging layers and clips, and the mouse or drawing tablet sits closer to the center of the desk.

Tools for a keyboard build

For a hot-swap build you need very little:

  • A switch puller and a wire keycap puller.

  • A small screwdriver for the case and screw-in stabilizers.

  • Tweezers, for testing the PCB and straightening bent pins.

  • Lube, if you want to tune switches or stabilizers. Krytox 205g0 is the usual choice for linear switches and stabilizer housings, and a thicker grease is common on stabilizer wires.

  • A soldering iron, only for a solder PCB. QMK's guide suggests about 315°C with rosin-core solder, and lead-free solder usually needs a little more heat, around 340 to 370°C.

How to build your keyboard, step by step

Step 1: Test the PCB

Plug the bare PCB into your computer and open a key tester, such as the one in QMK Configurator. Touch the two contacts of each switch socket with tweezers and check that every key registers. It's far easier to return a faulty PCB now than after you've built on it.

Step 2: Install the stabilizers

Lube the stabilizers if you plan to, then fit them to the PCB (or the plate, for plate-mount stabilizers). Do this before the switches go in, because you can't reach the stabilizer mounts afterward. Screw-in stabilizers on a thin 1.2mm PCB usually need shims to sit tight.

Step 3: Install the switches

Check that each switch's two metal pins are straight. Line the switch up with the plate and press it in until it clicks flush, supporting the PCB from underneath so you don't push a hot-swap socket off the board. Fill the corners first so the plate stays aligned.

Step 4: Assemble the case

Add any case foam, set the plate and PCB into the case, connect the USB daughterboard cable if your kit has one, and screw the case together.

Step 5: Test again and fit the keycaps

Run the key tester a second time, then press the keycaps on. Start with the long keys so you can feel whether the stabilizers move smoothly.

How to set up the firmware

Most custom boards run QMK, open-source firmware that lets you remap every key and add layers. VIA and Vial give QMK boards a simple app for remapping without recompiling anything: VIA runs in a browser at usevia.app, and Vial has a desktop app and a web version. Many DIY wireless boards use ZMK, an open-source firmware built for wireless.

If you do need to flash new firmware, put the board into bootloader mode with its reset button or, if the board has Bootmagic turned on, by holding the top-left key (usually Esc) while plugging it in, which clears saved settings. Then flash the file with QMK Toolbox. Don't unplug the board mid-flash.

For creative work, a second layer is the best use of all this: put your editing app's shortcuts, like cut, ripple delete or brush size, on the home row and reach them by holding one key.

How the case mount changes the feel

Mounting style is how the plate and PCB attach to the case, and it shapes how firm or bouncy the typing feels. Tray mount screws the PCB straight to posts in the case, which is cheap and can feel uneven near the screws. Top mount screws the plate to the top half of the case for a firm, even feel. Gasket mount sits the plate on soft gaskets, so it flexes slightly and usually sounds softer, though it costs more.

Common keyboard-building mistakes

  • Skipping the PCB test, then finding a dead socket after the build.

  • Bent switch pins, which cause keys that don't register. Straighten them with tweezers.

  • Too much lube, which makes switches feel sluggish.

  • Clipping a switch's metal pins instead of its plastic legs.

  • Buying keycaps or stabilizers that don't match your layout, such as a 6.25u spacebar for a 7u board.

Frequently asked questions

Do you need to solder to build a mechanical keyboard?

No. A hot-swap PCB takes switches without soldering. You only need a soldering iron for a solder PCB.

How much does it cost to build your own keyboard?

A budget hot-swap build runs about $110 to $190 in parts, and most first builds land between $150 and $300. Premium cases and keycap sets can push it much higher.

How long does it take to build a keyboard?

An hour or two for a hot-swap build. Lubing switches or soldering adds several hours.

What's the best keyboard layout for creators?

A 75% or 65% layout suits most creators: you keep the arrow keys and gain desk space for a mouse or drawing tablet. Writers who enter a lot of numbers may want a TKL or full-size board.

What's the difference between QMK, VIA and Vial?

QMK is the firmware that runs on the keyboard. VIA and Vial are apps that let you remap a QMK board without rebuilding the firmware, and Vial is a fork of QMK with its own app and a few extra features.

Explore Topics

Icon

0%

Explore Topics

Icon

0%