The cost of living is measured using a cost of living index, which compares the expenses of living in different states to the national average.