As the Fourth of July approaches, South Carolina has been named one of the most patriotic states in the U.S. in a new WalletHub study.
The study, which measures factors from military engagement to volunteer hours, ranked South Carolina as the fourth most patriotic state, just behind Virginia, Alaska and Wyoming.
The Palmetto State ranked even higher in the military engagement category, coming in third, according to the study. South Carolina has the second highest average number of enlisted military, behind only Georgia.
The state also has the fifth most veterans per capita, according to the study.
Red states tended to rank higher in overall patriotism than blue states, according to the study.
Other factors considered in the ranking include number of active-duty military members, number of people in the military reserves, share of adults who voted in the 2016 elections and people participating in jury duty.
Researchers even measured the frequency of Google Searches for American flags.