The name is very old. A man recorded as Ecceard Smith in County Durham was mentioned in the late 900s, when smith was still a description of a job rather than a fixed surname. As inherited surnames took hold in England after the Norman Conquest, the trade name stuck.
There is no single Smith family. Because almost every village needed a smith, unrelated families in different places took the same name independently. That is the main reason it is so widespread, and why two people called Smith are not necessarily related at all.
The trade also explains the many specialised forms of the name: Blacksmith for iron, Goldsmith and Silversmith for precious metals, and similar names in other languages, such as Schmidt in German and Fabbro in Italian. In Ireland and Scotland, Smith was sometimes adopted as the English form of the Gaelic Mac Gobhann, son of the smith.
In the United States, Smith is the most common surname, and its demographic profile reflects American history, not a single origin. According to the 2020 Census data on this site, 68.0% of bearers identify as White and 22.6% as Black or African American. Many African American Smiths descend from enslaved people who were given the surname of an enslaver, and others later adopted Smith precisely because it was already the most common English surname in North America.