Minimum ages vary by operator on Koh Samui. Children can usually ride as passengers on a double quad with an adult, often from around age 4 to 6, while riding solo generally requires you to be a teenager or adult.
Always confirm the age policy with the operator before booking, especially for young children.