Usually 5 years or until age 18, whichever hits first, though a handful of fund houses also sell a no-lock-in version of the same fund, so check which one you’re actually buying.