A shogun was one person. A samurai was a class of hundreds of thousands. The confusion between the two is understandable — but the difference matters.

The samurai class

Samurai (侍) were Japan’s hereditary warrior class. At the height of the Edo period, samurai and their families comprised roughly 5-7% of the Japanese population — perhaps 1.5 to 2 million people out of around 30 million. [contested — population estimates for the Edo period vary]

Samurai ranged from powerful domain lords (daimyo) with tens of thousands of retainers, down to low-ranking foot soldiers barely distinguishable from commoners. What they shared was legal status: the right to bear two swords, the obligation to serve a lord, and a place in the official social hierarchy. [history]

The shogun

Shogun is an abbreviation of Sei-i Taishogun (征夷大将軍) — “Commander-in-Chief of the Expeditionary Force Against the Barbarians.” The title was originally granted by the Emperor to military commanders leading campaigns against the Emishi people. [history]

Minamoto Yoritomo repurposed it in 1192 as the title of Japan’s supreme military ruler — effectively a parallel government standing alongside (and eventually above) the imperial court. This was the beginning of the Kamakura shogunate, Japan’s first feudal military government.

The hierarchy

The feudal hierarchy, from top to bottom:

Rank Title Role
Symbolic apex Emperor Divine authority; no executive power after 1192
Supreme ruler Shogun Military government; controlled daimyo
Domain lords Daimyo Ruled territories; commanded samurai retinues
Warriors Samurai Served daimyo; hereditary warrior status
Foot soldiers Ashigaru Low-ranking fighters; sometimes elevated to samurai

Every shogun was, by definition, a samurai. But the gap between an ordinary samurai and the shogun was enormous — comparable to the gap between a private soldier and a head of state.

Three shogunates

Japan had three periods of shogunal rule [history]:

Kamakura shogunate (1185-1333) — Founded by Minamoto Yoritomo, based in Kamakura. Nine shoguns, though real power later shifted to the Hojo regents.

Muromachi shogunate (1338-1573) — Founded by Ashikaga Takauji, based in Kyoto. Fifteen shoguns; authority eroded as the Sengoku period of civil war began.

Edo shogunate (1603-1868) — Founded by Tokugawa Ieyasu after victory at Sekigahara. Fifteen shoguns over 265 years of relative peace. The last shogun, Tokugawa Yoshinobu, resigned in 1867.

Toyotomi Hideyoshi: the exception

Toyotomi Hideyoshi — born a peasant, rose to become the most powerful man in Japan — could not take the shogun title because he lacked Minamoto lineage, which was the conventional requirement. He ruled instead as Kampaku (Imperial Regent). The requirement was not a law but a convention strong enough that even Hideyoshi chose to work around it rather than break it. [history]

For more on the [glossary/shogun] title, the daimyo system, and the ashigaru foot soldiers beneath the samurai class, see those dedicated entries.