The Fourth of July is this weekend. And while the Declaration of Independence declares that "all men are created equal," that sentiment doesn't apply to all Independence Day celebrations.
WalletHub compared the 100 largest U.S. cities based on how well the balance of holiday cost and fun. The research company used 16 metrics, including the duration of fireworks shows, average gas prices, weather forecasts and more. The 16 metrics were categorized into three key dimensions: Entertainment and food, attractions and activities, and weather forecast for July 4th.
Related: 15 fireworks safety tips to prevent injuries and property damage
The metrics were graded on a 0-to-100-point scale, with 100 representing the most favorable conditions for Independence Day revelry. WalletHub then calculated an overall score for each city using the weighted average across all metrics and ranked the cities accordingly.
Click on the infographic to the right to see the top-ranked cities in some of the key metrics measured.
Data used to create the rankings were obtained from the U.S. Census Bureau, Council for Community and Economic Research, Priceline Group, American Automobile Association, American Pyrotechnics Association, WalkScore, TomTom International, Eventbrite, AccuWeather, Kayak.com, Yelp and WalletHub Research.
See the full ranking of all 100 cities analyzed here.
Keep reading to see the top 10 best and top 10 worst cities for Fourth of July celebrations, according to WalletHub:

This view of downtown Orlando at sunset is one of the reasons why it's one of the best cities for July Fourth celebrations. (Photo: iStock)
10. Orlando

Fireworks over San Francisco and the Golden Gate Bridge. (Photo: iStock)
9. San Francisco

The American flag waves over Milwaukee. (Photo: iStock)
8. Milwaukee

July Fourth fireworks over San Diego. (Photo: iStock)
7. San Diego

Fireworks go off near Gateway Arch in St. Louis. (Photo: iStock)
6. St. Louis

A street performer dressed as Uncle Sam plays flaming bagpipes while riding a unicycle across the Burnside Bridge during Portland's Fourth of July celebrations. (Photo: iStock)
5. Portland, Oregon

Washington Monument stands tall with Fourth of July Fireworks in background in Washington D.C. (Photo: iStock)
4. Washington, D.C.

World-famous Bourbon Street in the French Quarter of New Orleans is always ready for a celebration. (Photo: iStock)
3. New Orleans

The Lowry Avenue Bridge in Minneapolis lit up for Fourth of July. (Photo: iStock)
2. Minneapolis

July Fourth fireworks at Lake Union in Seattle. (Photo: iStock)
1. Seattle
Here are the 10 worst U.S. cities for Fourth of July celebrations, according to WalletHub:
10 Worst U.S. Cities for 4th of July Celebrations
91. Mesa, Ariz.
92. Riverside, Calif.
93. Newark, N.J.
94. Garland, Texas
95. Arlington, Texas
96. San Bernardino, Calif.
97. Gilbert, Ariz.
98. Irving, Texas
99. North Las Vegas, Nev.
100. Laredo, Texas
© Arc, All Rights Reserved. Request academic re-use from www.copyright.com. All other uses, submit a request to TMSalesOperations@arc-network.com. For more information visit Asset & Logo Licensing.