The oldest printed "nerd" is an animal. It does not exist, and it was drawn by Dr. Seuss.
In If I Ran the Zoo, published in 1950, the young narrator lists creatures he would collect: "a Nerkle, a Nerd, and a Seersucker, too!" The Nerd is just one more invented creature. Nothing in the verse connects it to brains or social awkwardness.
A year later the word turned up as slang. In 1951, Newsweek reported on teenage speech in Detroit: "someone who once would be called a drip or a square is now, regrettably, a nerd." That quotation, preserved by Merriam-Webster, is the first clear record of the modern sense.
What links the two is the unsolved part. The Seuss book may have launched the word, or teenagers may already have been saying it. Several other origins have been proposed, and none has hard evidence.
- Nert or nut. Etymonline calls this the likeliest route. Nert was an older slang word for a foolish or crazy person, itself an alteration of nut.
- Mortimer Snerd. Edgar Bergen's ventriloquist dummy was a well-known country bumpkin. The resemblance is suggestive but unproven.
- Knurd. A story told at Rensselaer Polytechnic Institute says it is "drunk" spelled backward, for a student who studies instead of partying. Spellings like nurd and gnurd do show up at RPI and MIT from 1965. That is well after 1951, so the backward-spelling tale looks like a later reinterpretation.
- Turd. Some suggest nurd started as a euphemism. Merriam-Webster finds no evidence.
Whatever the source, the meaning kept moving. Etymonline says that by the late 1970s it was often aimed at students who avoided drugs and parties. The 1970s sitcom Happy Days spread the word to a national audience. Etymonline dates the sense "roughly the same as geek" to about 1984, the year of Sixteen Candles and Revenge of the Nerds.
Then the insult softened. Etymonline records college slang from 1989 using nerd neutrally, for someone knowledgeable or capable. By the 1990s phrases like computer nerd and film nerd were common, and the word had largely lost its sting.
The honest verdict: Seuss has the earliest citation, but no one has shown where the slang came from.