It depends on the personal interest of a kid. Some of them showing interest in basic coding being 4-5 years, but for others, who are not that much interested, 14, for instance, would be fine.