Home sellers in Greater Hartford have an important edge over those in the Boston area: their commutes cost substantially less.

Greater Hartford drivers lose an average of $8,158.76 commuting each year, a new analysis by real estate referral firm Clever has found, compared to $9,716.26 lost by Boston drivers each year. The company analyzed data from the U.S. Census Bureau, Department of Transportation and gas price tracking firm Gas Buddy to tabulate the most expensive commutes out of the nation’s 50 biggest metro areas.

The analysis calculated the average amounts commuters spend on gas and car maintenance per year, and added that to the opportunity cost of the commute – the average time spent commuting each year multiplied by the average hourly wage – to find the average cost of commuting in each region.

Hartford’s short average commute of only 25.13 minutes, compared to Boston’s 30.66 minutes, helped it win out, even if drivers travel substantially greater distances in Greater Hartford (7,077 miles per year) than those in Boston (5,299 miles per year).

Boston regularly makes lists of the regions with the worst commutes in the country, and wound up at fifth place in Clever’s ranking of commute costs.