DENVER (KDVR) — Bike lanes, farmers markets, city parks, community gardens — all these common Denver practices put the Mile High City as one of the greenest cities in the country, according to a new study.

WalletHub rated 100 of the largest cities on 28 “green” indicators, which include data like greenhouse gas emissions per capita, percent of green space, percent of commuters who drive and the number of smart-energy policies and initiatives.

Out of the top 100 cities, Denver placed 13th.

Top 20 greenest cities

  1. San Diego, California
  2. Honolulu, Hawaii
  3. Portland, Oregon
  4. Washington, D.C.
  5. Seattle, Washington
  6. San Jose, California
  7. San Francisco, California
  8. Oakland, California
  9. Fremont, California
  10. Minneapolis, Minnesota
  11. Irvine, California
  12. Sacramento, California
  13. Denver, Colorado
  14. Albuquerque, New Mexico
  15. Madison, Wisconsin
  16. Buffalo, New York
  17. Riverside, California
  18. St. Paul, Minnesota
  19. Stockton, California
  20. Long Beach, California

WalletHub looked at environmental factors like transportation, energy sources, lifestyle and policy to determine a city’s overall ranking. The data accounted for some of the biggest environmental factors like water consumption, to some of the smaller factors like the presence of plastic bags.

One of Denver’s best metrics was its bike score. Out of all the cities, Denver ranked fifth for the best bike score.

However, this doesn’t mean Denver is completely green.

The city ranked as one of the worst for greenhouse gas emissions. Out of 100 cities, Denver was 98th for the highest greenhouse emissions per capita.

While Denver is in the top 20 for the greenest cities, there’s more that can be done.