What a 2x4x8 is, and why the size on the tag is not the real size
A 2x4x8 is a stud: a piece of spruce, pine or fir (the trade calls the mix SPF) that is nominally 2 inches by 4 inches and exactly 8 feet long. After drying and planing, the real cross-section is about 1 1/2 inches by 3 1/2 inches. The length is the only true number on the tag.
That is why wall math never uses 2 and 4. A 2x4 wall is 3 1/2 inches deep, and a 2x6 wall is 5 1/2. For an 8 ft ceiling, framers often buy precut studs of 92 5/8 inches, which leave room for a bottom plate and two top plates. Precut studs are sold separately from the 8 ft piece priced on this page.