(STACKER) — Life expectancy can be affected by a variety of factors. About 25% of your lifespan is determined by genetics, according to the National Library of Medicine. Health and wellness habits—like following a balanced, nutrient-rich diet; not smoking; drinking minimal alcohol; maintaining a healthy weight; and staying physically active—can add more than a decade to your life, research from the National Institutes of Health shows. While these factors are significant, another important element that you might not have considered is your environment and community.

While life expectancy generally increases annually in the United States—jumping from about 70.8 years old to 77.5 between 1970 and 2022, according to the Centers for Disease Control and Prevention—this particular metric can vary from state to state or even county to county. In some parts of the country, the average lifespan is getting shorter based on a variety of risk factors on top of health, including socioeconomic factors like poverty, unemployment, income, and education.

According to a 2020 study from researchers at Penn State, West Virginia, and Michigan State Universities, communities with a higher population density, more fast food restaurants, and a high number of extraction industry-based jobs tend to have shorter life expectancies.

To find out how life expectancy varies within Virginia, Stacker used 2024 County Health Rankings & Roadmaps from the University of Wisconsin Population Health Institute to identify the counties with the shortest life expectancy. Life expectancy measures the average number of years from birth a person can expect to live and is calculated based on the number of deaths in a given time period and the average number of people at risk of dying during that period. Counties with unreliable or insufficient data were excluded from the analysis. Mortality data came from the National Vital Statistics System.

Read on to see if your county is on the list.

You may also like: Virginia ranks #39 in mental health care deserts

#50. Prince Edward County (tie)

– Life expectancy: 75.0 years
— 3.1 years lower than the state average

#48. Newport News (tie)

– Life expectancy: 74.6 years
— 3.5 years lower than the state average

#48. Page County (tie)

– Life expectancy: 74.6 years
— 3.5 years lower than the state average

#45. Salem (tie)

– Life expectancy: 74.5 years
— 3.6 years lower than the state average

#45. Brunswick County (tie)

– Life expectancy: 74.5 years
— 3.6 years lower than the state average

You may also like: How syringe exchanges in Virginia reduce the spread of disease

#45. Fredericksburg (tie)

– Life expectancy: 74.5 years
— 3.6 years lower than the state average

#44. Waynesboro

– Life expectancy: 74.4 years
— 3.7 years lower than the state average

#42. Lynchburg (tie)

– Life expectancy: 74.1 years
— 4.0 years lower than the state average

#42. Accomack County (tie)

– Life expectancy: 74.1 years
— 4.0 years lower than the state average

#40. Norfolk (tie)

– Life expectancy: 74.0 years
— 4.1 years lower than the state average

You may also like: These 10 car insurers have the highest market share in Virginia

#40. Middlesex County (tie)

– Life expectancy: 74.0 years
— 4.1 years lower than the state average

#37. Northampton County (tie)

– Life expectancy: 73.9 years
— 4.2 years lower than the state average

#37. Scott County (tie)

– Life expectancy: 73.9 years
— 4.2 years lower than the state average

#37. Mecklenburg County (tie)

– Life expectancy: 73.9 years
— 4.2 years lower than the state average

#34. Russell County (tie)

– Life expectancy: 73.8 years
— 4.3 years lower than the state average

You may also like: Counties where homes are selling the fastest in Virginia

#34. Pulaski County (tie)

– Life expectancy: 73.8 years
— 4.3 years lower than the state average

#34. Essex County (tie)

– Life expectancy: 73.8 years
— 4.3 years lower than the state average

#31. Nottoway County (tie)

– Life expectancy: 73.7 years
— 4.4 years lower than the state average

#31. Lunenburg County (tie)

– Life expectancy: 73.7 years
— 4.4 years lower than the state average

#31. Wythe County (tie)

– Life expectancy: 73.7 years
— 4.4 years lower than the state average

You may also like: Best private colleges in Virginia

#29. Bristol (tie)

– Life expectancy: 73.6 years
— 4.5 years lower than the state average

#29. Alleghany County (tie)

– Life expectancy: 73.6 years
— 4.5 years lower than the state average

#28. Patrick County

– Life expectancy: 73.5 years
— 4.6 years lower than the state average

#27. Amelia County

– Life expectancy: 73.4 years
— 4.7 years lower than the state average

#26. King and Queen County

– Life expectancy: 73.3 years
— 4.8 years lower than the state average

You may also like: Best amusement parks in Virginia

#23. Giles County (tie)

– Life expectancy: 72.8 years
— 5.3 years lower than the state average

#23. Lee County (tie)

– Life expectancy: 72.8 years
— 5.3 years lower than the state average

#23. Halifax County (tie)

– Life expectancy: 72.8 years
— 5.3 years lower than the state average

#22. Colonial Heights

– Life expectancy: 72.5 years
— 5.6 years lower than the state average

#21. Sussex County

– Life expectancy: 72.4 years
— 5.7 years lower than the state average

You may also like: Metros in Virginia that are best for nurses

#20. Greensville County

– Life expectancy: 72.3 years
— 5.8 years lower than the state average

#18. Dickenson County (tie)

– Life expectancy: 72.2 years
— 5.9 years lower than the state average

#18. Smyth County (tie)

– Life expectancy: 72.2 years
— 5.9 years lower than the state average

#16. Henry County (tie)

– Life expectancy: 72.1 years
— 6.0 years lower than the state average

#16. Portsmouth (tie)

– Life expectancy: 72.1 years
— 6.0 years lower than the state average

You may also like: The best beach towns in Virginia

#15. Buchanan County

– Life expectancy: 72.0 years
— 6.1 years lower than the state average

#14. Charlotte County

– Life expectancy: 71.8 years
— 6.3 years lower than the state average

#13. Buena Vista

– Life expectancy: 71.6 years
— 6.5 years lower than the state average

#12. Roanoke

– Life expectancy: 71.4 years
— 6.7 years lower than the state average

#11. Tazewell County

– Life expectancy: 71.2 years
— 6.9 years lower than the state average

You may also like: Counties with the worst droughts in Virginia

#10. Wise County

– Life expectancy: 71.1 years
— 7.0 years lower than the state average

#9. Danville

– Life expectancy: 69.4 years
— 8.7 years lower than the state average

#8. Covington

– Life expectancy: 69.3 years
— 8.8 years lower than the state average

#7. Norton

– Life expectancy: 69.0 years
— 9.1 years lower than the state average

#6. Hopewell

– Life expectancy: 68.5 years
— 9.6 years lower than the state average

You may also like: How much manufacturers in Virginia spend on equipment

#5. Franklin

– Life expectancy: 67.9 years
— 10.2 years lower than the state average

#4. Emporia

– Life expectancy: 67.3 years
— 10.8 years lower than the state average

#3. Martinsville

– Life expectancy: 66.7 years
— 11.4 years lower than the state average

#2. Galax

– Life expectancy: 66.2 years
— 11.9 years lower than the state average

#1. Petersburg

– Life expectancy: 64.9 years
— 13.2 years lower than the state average

This story features data reporting by Karim Noorani, writing by Kiersten Hickman, and is part of a series utilizing data automation across 49 states.

You may also like: Counties where children have the best opportunity for economic mobility in Virginia