WalletHub recently revealed the most fun states in America by comparing all 50 states against two key categories: entertainment and recreation, and nightlife.

From weather and movie costs, to the number of restaurants and amusement parks per capita, WalletHub looked at 26 metrics in these two categories, grading each on a 100-point scale. The greatest number and variety of fun and affordable options was indicated by 100 points. Some metrics, like number of attractions, were weighted more heavily than other metrics, such as number of fitness centers per capita.

WalletHub then calculated each state's weighted average across all factors for its overall score.

From New York to California, scroll through below to see the top 25 most fun states in America.

1/

25. Oklahoma — Oklahoma ranked first for number of casinos per capita.

Austin Urton/Shutterstock

2/

24. South Dakota — This Midwestern state ranked first for state and local direct spending on parks and recreation per capita and fourth for best access to national parks.

Checubus/Shutterstock

3/

23. Tennessee — Home to country music, this southern state ranked fifth for highest variety of arts, entertainment, and recreation establishments.

Scott Heaney/Shutterstock

4/

22. New Mexico — Sunny New Mexico ranked first for ideal weather.

Henryk Sadura/Shutterstock

5/

21. Massachusetts — This Northwestern state tied first with Minnesota for personal spending on recreation services per capita.

RomanSlavik.com/Shutterstock

6/

20. Maryland — Maryland tied with Florida, Massachusetts, and Michigan for most marinas per capita.

Sean Pavone/Shutterstock

7/

19. South Carolina — The Palmetto State ranked first for affordable movie costs.

Shutterstock

8/

18. North Carolina — Full of coastal charm, North Carolina has the best beach quality.

Shutterstock

9/

17. Arizona — Arizona ranked third for ideal weather.

welcomia/Shutterstock

10/

16. Michigan — Michigan ranked first for the most golf courses and country clubs per capita as well as average beer and wine price.

Shutterstock/Aceshot1

11/

15. Wisconsin — Wisconsin has the most music festivals per capita.

f11photo/Shutterstock

12/

14. Missouri — Missouri ranked sixth for number of state fairs and events per capita.

f11photo/Shutterstock

13/

13. Ohio — Ohio ranked fourth for number of arcades per capita.

Checubus/Shutterstock

14/

12. Louisiana — Home to New Orleans, it's no surprise Louisiana ranked first for the latest last call time.

Meinzahn/iStock

15/

11. Oregon — Oregon also ranks first for number of music festivals per capita.

6. Washington — Washington has the best access to scenic byways.

4. Florida — Like Texas, Florida ranked first for restaurants, amusement parks, and arcades per capita, and ranked third for most fitness centers per capita.

Courtesy of TripAdvisor

23/

3. Nevada — Home to Las Vegas, it's no surprise that Nevada came in number one for nightlife and casinos per capita and tied first with Louisiana for time of last call.

Andrew Zarivny/Shutterstock.com

24/

2. New York — New York ranked first for number of attractions, restaurants, movie theaters, fitness centers, and performing arts theaters per capita as well as "access to bars" grade.

TTStudio/Shutterstock

25/

1. California — A haven for film and sports, the Golden State easily ranked number one in entertainment and recreation. It also ranked first for number of attractions, restaurants, amusement parks, movie theaters, arcades, fitness centers, music festivals, and performing-arts theaters per capita.