Home » Keyboard Reviews » Mechanical Keyboards » How to Solder (and Desolder) a Keyboard Switch Safely

How to Solder (and Desolder) a Keyboard Switch Safely

By Published

Quick answer

To solder a keyboard switch, fit the switches into the plate and PCB, then for each pin touch a hot iron to both the pad and the pin for about a second, feed a little solder into the joint (not onto the iron), remove the solder, then the iron. A good joint is a small, shiny cone. To desolder, heat the joint and remove the solder with a desoldering pump or wick, then pull the switch once both pins are free. Always work with ventilation or fume extraction, keep the iron in its stand and wear eye protection.

How to solder keyboard switches safely guide graphic with key safety steps
Most problems come from rushing: let the joint heat, then feed the solder.

If your keyboard isn’t hot-swappable, changing or replacing switches means soldering. It’s a skill most people can learn in an afternoon, but it involves a tool that runs at several hundred degrees and produces fumes, so take it slowly. If you haven’t decided whether you even need to solder, read hot-swap vs soldered keyboards first.

Chart of the five steps for soldering an MX-style keyboard switch to a PCB
A good joint is a small, smooth cone that wraps the pin and covers the pad.

Safety first

Soldering is safe when you treat the iron and the fumes with respect:

  • Fumes. Smoke from rosin-based solder flux can irritate the lungs, and the UK Health and Safety Executive (HSE) lists it as a common cause of occupational asthma. Work in a well-ventilated room, use a fume extractor or small fan to pull smoke away from you, and keep your face out of the plume.
  • Burns. The tip is extremely hot. Always return the iron to its stand, never leave it unattended, and switch it off when you’re done.
  • Eyes. Wear safety glasses; solder and flux can spit, and clipped leads can fly.
  • Lead. If you use leaded solder, don’t eat or drink while working, and wash your hands afterwards. Lead-free solder avoids this but needs a hotter iron.
  • Children and pets. Keep them away from the work area.
  • Power. Unplug the keyboard and disconnect any battery before soldering.

What you need

ToolWhy
Temperature-controlled soldering ironLets you use the lowest temperature that makes a good joint
Fine chisel or conical tipFits keyboard pads neatly
Solder (rosin-core, thin gauge)Small diameter makes it easier to control
Brass wool or a damp spongeKeeps the tip clean
Desoldering pump or wickRemoves solder when desoldering
Fume extractor or fanMoves fumes away from your face
Safety glassesProtects your eyes
A spare PCB or switchFor practice

Follow the solder maker’s recommended temperature. Lead-free solder needs a higher temperature than leaded solder, but too much heat can lift pads off the PCB.

How to solder a switch

  1. Fit the switches. Clip switches into the plate, then press the plate onto the PCB so both metal pins come through their holes. Check every pin is straight and visible.
  2. Start with a few corners. Solder one pin on a few switches around the board, then check everything is still flat and aligned before doing the rest.
  3. Clean and tin the tip. Wipe the tip and melt a tiny bit of solder onto it so heat transfers well.
  4. Heat the joint. Touch the tip to the pad and the pin at the same time for about a second.
  5. Feed the solder. Touch the solder to the joint on the opposite side from the iron. Let it flow around the pin and fill the pad. Don’t melt solder onto the iron and drip it on.
  6. Remove solder, then the iron. Pull the solder away first, then the iron. Don’t move the switch while the joint cools.
  7. Inspect. A good joint is shiny (or slightly matte with lead-free solder) and cone-shaped, wrapping the pin and covering the pad.

How to desolder a switch

  1. Heat the joint until the solder melts.
  2. Remove the solder with a desoldering pump (trigger it right as you lift the iron) or press desoldering wick onto the joint with the iron on top.
  3. Repeat until the pin moves freely in the hole. Adding a little fresh solder to an old joint can help it melt and come away more easily.
  4. Do both pins, then remove the switch from the plate. Don’t force it; if it resists, a pin is still stuck.

Don’t hold the iron on a pad for a long time or lever a switch out while solder is still holding it. That’s how pads and traces get lifted from the PCB, which is much harder to fix.

Checking your work

Plug the keyboard in and test every key before closing the case. An online key tester or your keyboard’s software will show any key that doesn’t register. Common problems:

ProblemLikely causeFix
Key doesn’t registerCold or missing jointReheat and add a little solder
Two keys trigger togetherSolder bridge between padsRemove excess with wick
Dull, lumpy jointNot enough heatReheat until solder flows
Switch sits crookedSoldered before seating fullyDesolder one pin, press flat, resolder

Avoid soldering altogether

If you’d rather not solder, a hot-swap PCB lets you change switches by hand. See our best barebones keyboard kits and our guide on how to change keyboard switches. If you’re planning a full build, how to build your own mechanical keyboard covers the order of assembly, and once switches are out you can open them safely to lube or clean them. A detachable cable also makes testing easier; our best coiled keyboard cables explains the connectors.

FAQ

What temperature should I solder keyboard switches at?

Use the lowest temperature that gives a good joint, following your solder maker’s recommendation. Lead-free solder needs more heat than leaded solder.

Is soldering fume dangerous?

Rosin-based flux fume can irritate the lungs and cause asthma with repeated exposure. Use ventilation or fume extraction and keep your face out of the smoke.

Leaded or lead-free solder?

Leaded solder is easier to work with; lead-free avoids handling lead. If you use leaded solder, wash your hands and don’t eat while working.

How long does it take to solder a keyboard?

A beginner might take one to two hours for a full-size board. Desoldering usually takes longer.

Can I damage my keyboard by soldering?

Yes, too much heat or force can lift pads. Practise on spare parts and work slowly.

Sources

Leave a Comment