Money

The 10 highest-paying cities in America

Bicyclists commute near the San Francisco Ferry Building
Justin Sullivan | Getty Images
Bicyclists commute near the San Francisco Ferry Building

While expensive, city life can also be lucrative. In San Francisco, for instance, the typical employee rakes in $112,400 a year.

That's according to LinkedIn's 2017 State of Salary Report, which analyzed data from more than two million LinkedIn members and determined the 10 highest-paying cities.

Read on to see which other cities cracked the top 10 and how much professionals in these areas are earning.

For each city, we listed the median total compensation, which includes bonus and commission, if applicable. We also highlighted one job from each area that pays particularly well compared to the national average. All data comes from LinkedIn.

10. Chicago, Ill.

Chicago
Adam Jones | Getty Images
Chicago

Median total compensation: $79,000

Role that pays higher in Chicago: Electricians earn $130,000, 33 percent above the national average

9. Denver, Colo.

Denver, Colorado
Walter Bibikow | Getty Images
Denver, Colorado

Median total compensation: $80,300

Role that pays higher in Denver: Helpdesk analysts earn $70,000, 14 percent above the national average

8. Austin, Texas

Kayaking in Austin, Texas.
David Kozlowski | Getty Images
Kayaking in Austin, Texas.

Median total compensation: $80,600

Role that pays higher in Austin: Design engineers earn $72,000, 42 percent above the national average

7. Los Angeles, Calif.

Los Angeles
Naphat Photography | Getty Images
Los Angeles

Median total compensation: $82,100

Role that pays higher in Los Angeles: Elementary school teachers earn $49,000, 43 percent above the national average

6. Houston, Texas

Houston, Texas
Howard Kingsnorth | Getty Images
Houston, Texas

Median total compensation: $82,000

Role that pays higher in Houston: Engineering managers earn $130,000, 16 percent above the national average

5. Boston, Mass.

Boston, Massachusetts
Getty Images
Boston, Massachusetts

Median total compensation: $86,000

Role that pays higher in Boston: Communications managers earn $70,000, 43 percent above the national average

4. New York, New York

View of skyline and commercial real estate in New York City.
Roberto Machado Noa | LightRocket | Getty Images
View of skyline and commercial real estate in New York City.

Median total compensation: $86,600

Role that pays higher in New York: Marketing directors earn $95,000, 26 percent above the national average

3. Washington, D.C.

US Capitol building at the end of Pennsylvania Avenue.
Allan Baxter | Getty Images
US Capitol building at the end of Pennsylvania Avenue.

Median total compensation: $87,300

Role that pays higher in D.C.: Program directors earn $70,000, 86 percent above the national average

2. Seattle, Wash.

Seattle, Washington.
Getty Images
Seattle, Washington.

Median total compensation: $95,600

Role that pays higher in Seattle: Principal software engineers earn $145,000, 48 percent above the national average

1. San Francisco, Calif.

San Francisco, California
Matthew Baker | Getty Images
San Francisco, California

Median total compensation: $112,400

Role that pays higher in San Francisco: Registered nurses earn $67,200, 81 percent above the national average

Like this story? Like CNBC Make It on Facebook

Don't miss: Here's how much millennials are earning in 11 major US cities