Spindle speed formula
RPM = SFM × 12 / (π × D) RPM ≈ SFM × 3.82 / D (shop shorthand)
Surface feet per minute (SFM) is how fast the cutting edge moves across the material — the number that really controls tool life. A ½″ drill in mild steel at 100 SFM runs about 764 RPM.
Lathe vs mill
On a mill or drill press, D is the cutter diameter. On a lathe, D is the diameter of the part being turned — so RPM should go up as you face toward the center.
The material ranges are conservative starting points for general work. Tool makers publish their own numbers; use those when you have them.