It depends on the state.
According to passged.com:
Who's Eligible to Take the GED Test, HiSET exam, or TASC Test?
Every state or province offers one or more of the three high school equivalency tests. As a rule, you're eligible to take the test if:
- You aren't currently enrolled in high school;
- You haven't graduated from high school;
- You are at least 18 years old or older. Some states or provinces will allow testing at 16 and 17 years, often with special requirements.
- You meet local requirements regarding age, residency, preparation, and the length of time since leaving school.
Test eligibility varies in different states and provinces, because each government administers the test and awards an official certificate.Some states, such as Texas, require residency, whereas Florida does not. Find out more about your local test requirements and which tests are available.