Who invented Morse code? Samuel Morse and Alfred Vail

Morse code is credited to Samuel F. B. Morse and Alfred Vail, who developed the electric telegraph together in the United States in the 1830s and 1840s. Morse’s name went on the code, but how much of the dot-and-dash alphabet was really Vail’s work is a question historians still debate. And the code most people learn today, International Morse, is a later European revision of theirs.

So the honest answer is “Morse and Vail, and then others”. Here is who did what, as far as the record allows.

Samuel Morse: a painter who built a telegraph

Samuel Morse (1791 to 1872) did not start out as an engineer. He was a painter, trained in the fine arts, and by most accounts he earned his living mainly from portraits. The story usually told is that the idea of a telegraph came to him on a voyage home from Europe, in a conversation about electromagnets, and that he spent the following years turning it into a working machine.

Two ideas sit at the center of what Morse built:

  • A circuit you can open and close from far away. A key at one end closes the circuit; an electromagnet at the other end pulls when current flows and lets go when it stops.
  • A code made of nothing but on and off. If the far end can only tell “current” from “no current”, then everything you send has to be built from the length of the pulses and the silences between them.

The second idea is the one that outlived the hardware. Every Morse signal since, on wire, radio, a flashlight or a blink, is a pattern of on and off.

Morse is usually described as the public face of the telegraph: the patent was in his name, and he spent years defending it. That is the reason most often given for why the code carries his name.

Alfred Vail: the partner who made it work

Alfred Vail (1807 to 1859) was a younger man with a mechanic’s skills. In the usual account, his family ran an ironworks in New Jersey, he joined Morse in the late 1830s, he built much of the working apparatus, and his family helped pay for the work in return for a share in the rights.

Vail was not a silent partner. On 24 May 1844, when Morse sent “What hath God wrought” from the Capitol in Washington, it was Vail who received it in Baltimore. That message, and the line that carried it, is the subject of What hath God wrought: the first long-distance telegraph message.

The open question: who made the alphabet?

This is where the history gets uncertain, and where you should be careful with anything that sounds definite.

The dot-and-dash alphabet, a code for each letter, did not arrive fully formed. It took shape over the years of experiments that led up to the 1844 line. Some historians argue that Vail did more of that shaping than he was ever credited with. Others hold that it grew out of Morse’s own work, with Vail refining it. The surviving record does not settle the matter, and you will find confident accounts on both sides. The fair statement is that the code came out of their partnership, and how the credit should be split is still argued.

There is a famous story attached to the question. It is often told that Vail went to a printer’s shop and counted the type in the cases, on the reasoning that a printer keeps the most type for the letters used most, and then gave the shortest codes to the most common letters. Nobody has to believe the story to see the principle, because it is visible in the code itself.

The principle you can still hear

Whoever designed it, the code was built so that common letters are quick and rare ones take longer. E and T, the most common letters in English, got the shortest codes of all, and they still have them in International Morse:

Letter Code Length in units
E . 1
T - 3
I .. 3
A .- 5
N -. 5
S ... 5
Q --.- 13
J .--- 13
Y -.-- 13

A dit is 1 unit, a dah 3, and each gap inside a letter 1, which is how the lengths are counted. Send a page of ordinary English and E alone saves a great deal of time over a code that treated every letter alike. Why E is one dit: how Morse code follows letter frequency goes further into the pattern.

The people who came after

The code Morse and Vail used is not quite the code you would learn now. Theirs grew into what is now called American Morse. It had spaces inside some characters (C, O, R, Y, Z and the ampersand) and extra-long dashes for L and the figure 0, which worked on American lines but took a trained ear to read.

In Europe it was revised. The International code, also called Continental, is usually traced to Friedrich Clemens Gerke’s revision of 1848. It has no spaces inside characters and no long dashes, only dits, dahs and regular gaps. That regular code is the one that went to sea on radio, and the one the ITU publishes today as the standard. American Morse code vs International Morse code puts the two side by side.

So a fuller answer to “who invented Morse code” runs like this:

  1. Samuel Morse conceived the telegraph system and the idea of a code of pulses, and gave it his name.
  2. Alfred Vail is usually credited with building much of the equipment, and may have had a large hand in the letter code.
  3. Friedrich Clemens Gerke is usually credited with the 1848 revision that grew into the International code, which European telegraph services then reworked further.
  4. The ITU keeps the standard, and still edits it: the at sign .--.-. was added in 2004.

Morse was also not the only person building an electric telegraph in those years. Others in Europe had working systems of their own, some of which used needles that pointed at letters rather than a code. What made Morse and Vail’s approach last was the code: a single on and off signal can travel over a wire, a radio wave or a beam of light, and a trained ear can read it.

Hearing the code for yourself

You do not need any equipment to feel the frequency principle. Tap E and T on a table, one quick tap and one held tap, then tap Q, dah-dah-di-dah, and the difference in effort is the whole design idea in two seconds.

If you would like a machine to practice on, Dot & Dash on the Mac starts with the two letters the code made shortest: its welcome teaches E (one dit) and T (one dah), and its course opens with E, T and A, so you are keying real words like EAT and TEA from the first chapter.

Questions

Did Samuel Morse invent Morse code by himself?

No. He developed the telegraph and its code with Alfred Vail, and how much of the letter code was Vail’s is still debated. The International code used today is a later revision by others.

Who was Alfred Vail?

Alfred Vail (1807 to 1859) was Samuel Morse’s partner in developing the telegraph. He is usually credited with building much of the equipment, and he received the famous message, “What hath God wrought”, in Baltimore on 24 May 1844.

Did Samuel Morse invent the telegraph?

He developed one of the first working electric telegraphs, in the US in the 1830s and 1840s, and his system spread across the country. Other inventors in Europe built working electric telegraphs in the same years.

Why is E a single dit?

Because E is the most common letter in English, so giving it the shortest code saves the most time. T, the next most common, got the other one-element code, a single dah.