The 3.5" drive is the standard hard drive, and the only shape the largest capacities come in. Every one is the same size, so any 3.5" drive fits any 3.5" bay. What varies is the interface: a SATA and a SAS drive look alike and are not interchangeable.
Drawn to scale. The name is not the width: a 3.5" drive is 4 inches wide. Every 3.5" drive has these outside dimensions, so any of them fits any 3.5" bay.
Screws and screw holes
A 3.5" drive mounts by its sides or by its underside, with the same screw either way.
Screw
#6-32 UNC: 32 threads per inch (0.79 mm pitch), about 3.5 mm across the thread. The coarse-threaded screw a PC case comes with.
How deep
The screw should reach 2.4 to 3.56 mm (0.14 in) into the drive. Every drive accepts that much; a longer screw can bottom out or press on what is behind the hole.
Side holes
Two on each side, 6.35 mm above the underside, 28.5 mm and 130.1 mm from the connector end.
Underside holes
Four or six, in pairs 95.25 mm apart. One pair is always 41.28 mm from the connector end; a second is 44.45 mm or 76.2 mm further along, and some drives have both.
To scale, from SFF-8301, the standard for the 3.5" drive. Both sides are alike.
Watch for
Why
A third hole on each side
Many drives have one between the two in the drawing. The standard does not fix where it goes, and newer high-capacity drives leave it out, so a tray or cage that uses only the middle holes may not hold one.
The second underside pair
Older drives put it 44.45 mm from the first; many high-capacity drives put it at 76.2 mm instead. A tray that screws in from below needs holes for both.
Fine-threaded screws
The M3 screw of a 2.5" drive or an optical drive is thinner and does not hold in these holes.
Other drives in a 3.5" bay
To fit
You need
A 2.5" drive in a desktop
A 2.5" to 3.5" bracket, or just two screws: SSDs have no moving parts and need no firm mounting.
A 2.5" drive in a server
The server maker's adapter tray, which lines the connector up with the backplane. Dell calls its version a hybrid carrier.
Any drive in a hot-swap bay
The tray for that server and generation. Drives are often sold without one.