An ocean liner weighing 100,000+ tons floats for the same reason a steel paperclip sinks but a steel bowl floats: buoyancy—the upward force exerted by a fluid on an immersed object, equal to the weight of fluid displaced (Archimedes' principle).
Buoyant force (FB) = ρfluid × Vdisplaced × g
For a ship to float: Weight = Buoyant force → mshipg = ρwater × Vdisplaced × g
→ Vdisplaced = mship / ρwater
A 100,000-tonne ship displaces ~100,000 m³ of seawater (ρ ≈ 1,025 kg/m³). That's a cube ~46 m per side—easily achieved by a 300-m long hull.
Naval architects position heavy items (engines, fuel, ballast) low; lighter spaces (cabins, public areas) high. This lowers the center of gravity (KG), increasing metacentric height (GM)—the stability lever arm. Too low GM = tender (rolls excessively); too high = stiff (violent snap rolls). Target: comfortable, safe GM.
Ships adjust ballast water (seawater in dedicated tanks) to maintain trim (fore-aft balance), list (port-starboard balance), and stability as fuel/food/consumables are used and cargo/passengers change. Modern liners automate this.
Buoyancy keeps it up. Stability keeps it upright. Watertight integrity keeps it afloat after damage. All three are designed, calculated, tested (inclining experiment), and regulated (SOLAS, IMO, class societies: DNV, ABS, Bureau Veritas).
An ocean liner is a floating building, a power plant, a hotel, and a precision instrument—all balanced on a cavity in the sea, held up by the water it pushes aside.