Careers

Top 10 cities where employees are happiest

The capital of Silicon Valley: downtown San Jose, California
Geri Lavrov | Getty Images
The capital of Silicon Valley: downtown San Jose, California

It's not enough to love your job, you've got to love where you work. The city that your company and job are in is just as important as the work you do every day. And interestingly enough, all cities are not created equal. In fact, quality of life is often dictated by job satisfaction and compensation.

Glassdoor recently rolled out the 25 Best Cities for Jobs in the U.S. and took a look at three factors: how easy it is to get a job, how affordable it is to live there and how satisfied employees are working there. We took it one step further to bring in the job satisfaction piece, and the results are very interesting.

Here are the top 10 cities where employees are happiest. Cue Pharrell Williams' hit song!

More from Glassdoor:
15 companies with the best parental leave policies
25 awesome companies hiring in the best cities for jobs
How to find a job in 72 hours

1. San Francisco, Calif.

Job Satisfaction Rating: 3.6/5
Median Base Salary: $75,000
Number of Open Jobs: 232,156
Companies Hiring: Wells Fargo, Glassdoor, Pet Food Express, Chevron, Uber, Salesforce, Stitch Fix, The Hanover Insurance Group & more.

2. San Jose, Calif.

Job Satisfaction Rating: 3.5/5
Median Base Salary: $100,000
Number of Open Jobs: 106,809
Companies Hiring: Samsung Research America, eBay, BDS Marketing LLC, Safelite, Chipotle Mexican Grill, Apple, Sunbelt Staffing, IBM, Specialty's Cafe & Bakery, Unique Shipping & more.

3. Salt Lake City, UT

Job Satisfaction Rating: 3.5/5
Median Base Salary: $47,500
Number of Open Jobs: 44,991
Companies Hiring: HireVue, AECOM, Marriott International, Silver Key Benefits, Pluralsight, WAXIE Sanitary Supply& more.

4. San Diego, Calif.

Job Satisfaction Rating: 3.5/5
Median Base Salary: $50,000
Number of Open Jobs: 86,755
Companies Hiring: Kimpton Hotels & Restaurants, Hilton, Althea, Lockheed Martin, Argen, LINK Staffing, Burwood Group, Hunter Industries & more.

5. Boston, Mass.

Job Satisfaction Rating: 3.5/5
Median Base Salary: $60,000
Number of Open Jobs: 219,873
Companies Hiring: Brainshark, Black Diamond Networks, Bay State Community Services, PROCON, Apollo Security, Brookdale, Liberty Mutual, Access Information Management & more.

6. Washington, DC

Job Satisfaction Rating: 3.5/5
Median Base Salary: $62,000
Number of Open Jobs: 293,481
Companies Hiring: Veterans Administration, Metronome, Roto-Rooter, Sears Holding, The MASY Group, The Shade Store, McKinley Marketing Partners, Magnolia Companies, Johns Hopkins University Applied Physics Laboratory & more.

7. Seattle, Wash.

Job Satisfaction Rating: 3.5/5
Median Base Salary: $65,000
Number of Open Jobs: 187,741
Companies Hiring: Amazon, Microsoft, NTG Groups, Oslo Solutions, Nordstrom, Valant, Tableau Software, Bader Martin, Kindred Healthcare, OfferUp, Rational Interaction & more.

8. New Orleans, La.

Job Satisfaction Rating: 3.4/5
Median Base Salary: $40,000
Number of Open Jobs: 34,600
Companies Hiring: Brooke Staffing Companies, Community Health Center, CR England, Gilead Sciences, Jackson Therapy Partners, Teachers On Demand, Tulane Medical Center, Verizon Wireless & more.

9. Austin, TX

Job Satisfaction Rating: 3.4/5
Median Base Salary: $48,000
Number of Open Jobs: 79,947
Companies Hiring: YMCA of Austin, 83bar, CoreMedical Group, PeopleAdmin, Amazon, OutboundEngine, Informatics, Seaton Healthcare Network, ASCO Equipment & more.

10. Miami-Fort Lauderdale, Fla.

Job Satisfaction Rating: 3.4/5
Median Base Salary: $40,000
Number of Open Jobs: 126,681
Companies Hiring: LGI Homes, The Natures Bounty Co, Symbotic, InVentiv Health, National Signing Source, UPS, Assurant, TD Bank, Rehabcare & more.

Like this story? Like CNBC Make It on Facebook.

Don't Miss: The 25 highest-paying jobs in America

This article originally appeared on Glassdoor.