petitdoigt

Keyboard switches: what they are, how the types differ and how to choose

A keyboard switch is the mechanism under each key that registers a press. Mechanical switches pair a stem, a spring and a housing with a sensor, and come in three feels: linear (smooth), tactile (a bump) and clicky (a bump plus a click). Most use metal contacts in the Cherry MX style; others sense a magnet (Hall effect), light (optical) or capacitance (Topre). Force, travel, sound and keycap fit decide which one suits you.

updated 6 min readType with the key sounds of real switches

on this page
  1. What is a keyboard switch and what are its parts?
  2. What are the three feels: linear, tactile and clicky?
  3. What types of switch mechanisms exist?
  4. Who makes keyboard switches?
  5. How do I read a switch spec sheet?
  6. How do I choose a keyboard switch?

Keyboard switches are the mechanisms under the keycaps that register each press. In a mechanical keyboard every key has its own switch, and that switch sets how much force the key needs, how far it travels, whether you feel a bump and how loud it is. The term "mechanical keyboard switches" covers hundreds of models from dozens of makers. They differ in construction, feel, sensing method and force.

What is a keyboard switch and what are its parts?

A mechanical switch is a small module that holds a stem, a spring and a housing, plus the part that detects the press. A typical metal contact switch is a housing, a spring and a slider, sometimes with a separate tactile leaf or click bar. Each part has a job:

  1. Housing. The two-piece plastic shell, called top and bottom. In a Cherry MX it is held together by four retention tabs, two on each side, which enthusiasts pry open to service a switch.
  2. Stem. The slider that the keycap sits on. Its cross-shaped top takes the keycap in MX-style switches, and its shape and the housing walls decide whether the press is smooth or has a bump.
  3. Spring. Returns the stem. Cherry's MX2A switches use a barrel-shaped spring, and Gateron's Oil King uses a 20 mm black-plated spring.
  4. Contact leaf. In a metal contact switch, a movable leaf and a fixed terminal stay apart at rest. Pressing the key brings them together and closes the circuit. Cherry MX switches use gold crosspoint contacts, and many designs plate their contacts in gold to resist oxidation.

Switches that sense a magnet, light or capacitance have no contact leaf. They use a magnet and sensor, a light path or a capacitive pad instead.

What are the three feels: linear, tactile and clicky?

Linear switches have no bump, tactile switches have a bump at the actuation point, and clicky switches have a bump plus an audible click. Cherry's colors show the split: Black, Red and Speed Silver are linear; Clear, Brown and Tactile Grey are tactile; White, Blue and Green are clicky. Gateron, Kailh and other makers copied the color coding.

The three feels with Cherry MX2A examples (Cherry's published figures, in cN)
FeelWhat you noticeExampleActuation forceBump peakPre-travel / total travel
LinearSmooth press, force rises evenlyMX2A Red45none2 mm / 4 mm
TactileA bump at the actuation pointMX2A Brown45552 mm / 4 mm
ClickyA bump and a clickMX2A Blue50602.2 mm / 4 mm

Silent variants of linear and tactile switches add a damper to the stem or housing, which quiets the bottom-out and the return. The guide to linear vs tactile vs clicky compares the three on real switches, and separate pages cover linear, tactile, clicky and quiet switches. For the best-known Cherry colors, see red vs brown vs blue switches.

What types of switch mechanisms exist?

Keyboards use seven main mechanisms: metal contact, Hall effect, optical, capacitive (Topre), Alps, buckling spring and low profile. Each has its own way of detecting the press, and its own footprint, meaning the pin shape and keycap mount. Of the 1,162 switches in the petitdoigt switch database, 959 close a metal contact, 129 sense a magnet, 42 use light, 28 are capacitive and 4 are inductive.

  • MX-style metal contact. The most common type. Cherry developed and patented the MX design in the early 1980s and first marketed it around 1985. Gateron, Kailh and many others make switches that take the same cross-stem keycaps.
  • Hall effect (magnetic). A magnet moves with the key and a sensor reads the field. With no physical contact, these switches can be sealed against water and dust, and Wikipedia lists gaming models with actuation points from 0.1 mm to 4.0 mm. Wooting's Lekker magnetic switches set the actuation point in software. See Hall effect switches.
  • Optical. A light beam inside or around the switch is blocked or changed when the key moves. Razer, Gateron and others sell optical switches in linear, tactile and clicky versions. See optical switches.
  • Capacitive (Topre). Topre switches put a conical spring under a rubber dome, and the spring handles capacitive sensing. Realforce keyboards use them, and some Realforce models let you set the actuation point key by key. See Topre switches.
  • Alps. Alps made its SKCL and SKCM plate-mount switches from about 1983, and most were discontinued by 1996. Matias sells new Alps-style switches. See Alps switches.
  • Buckling spring. IBM patented it in 1978. A coil spring collapses under the keycap and drives a hammer, with a loud tactile click. Unicomp still builds buckling spring keyboards from the IBM Model M design and states a peak force of 72 g, give or take 20 g. See buckling spring.
  • Low profile. Shorter switches with less travel: Cherry's MX Low Profile 2.0 Red has 3.2 mm of total travel and 1.2 mm to actuation, and Kailh's Choc V2 Red has 3.2 mm total. They use their own footprints, so MX keycaps and sockets do not fit. See low profile switches.

Who makes keyboard switches?

Many brands sell switches built by someone else; Gateron, for one, also makes switches for other brands. The petitdoigt switch database lists 55 makers, 26 of which build switches.

Main switch makers and their official pages
MakerKnown forOfficial page
Cherry (Germany)The MX switch; the reference for color codes and specs in cNcherry.de
Gateron (China)MX-style contact, optical and magnetic switches; also makes switches for other brandsgateron.com
Kailh (China)Box and Speed switches, Choc low profile, magnetic switcheskailhswitch.com
Topre (Japan)Capacitive switches in Realforce and Happy Hacking Keyboardsrealforce.co.jp
Alps Alpine (Japan)The original Alps switches of the 1980s and 1990salpsalpine.com
WootingLekker Hall effect switcheswooting.io
RazerIts own mechanical and optical switches since 2014razer.com
Matias (Canada)Alps-style switchesmatias.ca
Unicomp (US)Buckling spring keyboardspckeyboard.com

The guide to switch manufacturers covers the rest, including which brands buy their switches from which factory.

How do I read a switch spec sheet?

Read four numbers first: actuation force, bottom-out force, pre-travel and total travel. Actuation force is the force at which the key registers. Bottom-out force is the force at the end of the stroke, where the stem hits the housing. Pre-travel is the distance to the actuation point and total travel is the whole stroke. Cherry states force in cN and most other makers in gf; the two units differ by about 2 percent, close enough to compare by eye. Cherry's MX2A Red lists 45 cN actuation, 100 cN bottom-out, 2 mm pre-travel and 4 mm total travel. Gateron's Oil King lists 55 gf, 80 gf, 2 mm and 4 mm.

Tactile and clicky switches add one more figure, the bump force. Other lines to check: the footprint and pin count (3 or 5 pins on MX-style switches), the housing and stem materials, whether the switch is lubricated at the factory, and the rated lifespan. Makers publish that last figure in millions of presses, and Cherry's MX2A pages say 100 million. The guide to switch specs explains each field in depth. A maker's numbers and a lab measurement can differ: RTINGS measured 48 gf actuation on the Oil King against Gateron's 55 gf.

How do I choose a keyboard switch?

Choose by force, feel, sound and what fits your keyboard. No source has shown that one feel makes people type faster, so these practical factors decide:

  • Force. Light switches start near 35 to 45 gf and heavy ones reach 60 gf or more. Cherry's MX2A Black asks 60 cN against 45 cN for the Red.
  • Feel. Linear for an uninterrupted press, tactile for a bump you can feel at actuation, clicky for audible feedback. The guide to the best switches for typing collects what reviewers recommend.
  • Sound. Clicky switches add an audible click; quiet linears and tactiles add dampers. See quiet switches.
  • Fit. Buying loose switches only works if the keyboard has hot-swap sockets for that footprint. See hot-swappable keyboards. For lubing, see lubing switches.

Trying a few switches is the fastest way to decide. petitdoigt plays key sounds recorded from 13 real switches, which you pick from a dropdown in its settings, so you can type a few word sets and hear how different switches sound. Your fingers do the same work on any switch: the chart of which finger presses which key shows the board, and keyboard layouts covers how the letters are arranged.

Questions people ask

What are the main types of keyboard switches?

By feel there are three: linear, tactile and clicky. By sensing there are metal contact, magnetic (Hall effect), optical and capacitive switches. A Cherry MX2A Red is linear, a Gateron G Pro Brown is tactile and a Cherry MX2A Blue is clicky. Sensing decides how the press is detected, and the stem and housing decide the feel.

What does the color of a switch mean?

Cherry's color codes are the reference: Red and Black are linear, Brown and Clear are tactile, Blue and Green are clicky. Gateron, Kailh and other makers copied the scheme. The color carries over loosely between brands: a Gateron G Pro Red and a Cherry MX2A Red both list 45 force units, while other colors differ.

What is a Hall effect switch?

A Hall effect switch has a magnet that moves with the key and a sensor that reads the magnetic field, so no metal contacts touch. Wikipedia notes that gaming models offer actuation points from 0.1 mm to 4.0 mm. Wooting sets the actuation point of its Lekker switches in software.

What switch is best for typing?

Actuation force, travel, sound and fit with your keyboard decide it, and no source has shown that one feel makes people type faster. Light linears at 45 gf with 2 mm to actuation, and tactile switches with a bump you can feel at actuation, are the common choices. The guide to the best switches for typing lists what reviewers recommend.

Can I change the switches on my keyboard?

Only on a hot-swap board, whose sockets let you pull a switch out and push another in without soldering. Other boards have the switches soldered to the PCB. The socket must also match the switch footprint: MX-style, Choc and Alps switches do not fit each other's sockets.

Sources

  1. Deskthority wiki: Cherry MX
  2. Wikipedia: Keyboard technology
  3. Cherry: MX2A Red
  4. Cherry: MX2A Brown
  5. Cherry: MX2A Blue
  6. Cherry: switches
  7. Gateron: about us
  8. Gateron: G Pro 3-pin switch features
  9. Gateron: Oil King linear
  10. RTINGS: Gateron Oil King
  11. Kailh: company
  12. Realforce (Topre): features
  13. Alps Alpine: company history
  14. Deskthority wiki: Alps SKCM series
  15. Wooting: Lekker V2 L60
  16. Wooting: about
  17. Razer: keyboard switches
  18. Razer: Linear Optical Switch
  19. Unicomp: FAQ
  20. Matias: switches
  21. Kailh: Choc V2 low-profile switch
  22. Cherry: MX Low Profile 2.0 Red