There's no single answer. It depends on the cat's size, breed, flexibility, and motivation.
Generally, a cat's head is the limiting factor. A cat can often squeeze through an opening about the size of its head. Small kittens may fit through 4–5 inch openings, average adults through 6–8 inches, and larger cats may need 10 inches or more.
Important Note: It's not always safe for cats to squeeze through small spaces, as they can get stuck or injured. Keep cats away from risky openings.