Born in Manhattan in 1928, Lehrer was a classically trained pianist who also pursued an academic career. He taught at prestigious institutions, including Harvard and MIT, all while creating music that would resonate with many, influencing modern comedians like Weird Al Yankovic. Lehrer graduated early from Loomis Chaffee School and swiftly earned a degree in mathematics from Harvard, where he started writing lyrics to entertain friends.

Some of Lehrer's most memorable songs include "The Elements," a comedic listing of chemical elements, and "The Masochism Tango," noted for its humorous take on romantic relationships. His works, including the controversial "Vatican Rag," often challenged societal norms and delivered pointed critiques of issues like war and religion.

In 1953, "Songs by Tom Lehrer" became a surprise success, selling hundreds of thousands of copies and earning him a spot in nightclubs across the U.S. His contributions to television included musical pieces for the satirical show "That Was the Week That Was" and educational content for "The Electric Company."

After decades of influencing music and comedy, Lehrer made headlines in 2020 by placing his songwriting copyrights in the public domain, ensuring that anyone could perform or record his songs freely. As he noted, “So help yourselves, and don't send me any money.” Despite announcing he would shut down his website eventually, it remains live and serves as a testament to his enduring legacy.