Cost of living comparison

compared to

Rabat vs. Shanghai Cost of Living Summary

Rabat is 30.1% cheaper than Shanghai.

Restaurants
pay 3.7% more in Rabat
Groceries
pay 30.8% less in Rabat
Transportation
pay 16.2% more in Rabat
Housing
pay 45.7% less in Rabat
Childcare
pay 79.6% less in Rabat
Entertainment and Sports
pay 12.3% less in Rabat
Clothing
pay 9.3% less in Rabat

The cost of transportation and restaurants in Rabat are more expensive than in Shanghai. Expenses including childcare, housing, groceries, entertainment and sports, and clothing are lower in Rabat.

Rabat vs. Shanghai Cost Breakdown

If you lived in Rabat instead of Shanghai, you would:

pay 3.7% more for restaurants

 
Shanghai
Rabat
Basic meal with drink at inexpensive restaurant $4.47
CN¥29.94
$4.01
MAD39.02
Fast food combo meal
McDonalds, or similar
$5.22
CN¥34.93
$7.02
MAD68.29
Bottle of Coca-Cola (11 fl. oz) $0.60
CN¥4.01
$0.54
MAD5.28

Improve prices ·

pay 30.8% less for groceries

 
Shanghai
Rabat
Bread
1 loaf
$1.98
CN¥13.22
$0.62
MAD6.06
Local cheese (8 oz) $8.60
CN¥57.52
$5.53
MAD53.77
Milk (1 gallon) $6.88
CN¥46.02
$3.21
MAD31.21

Improve prices ·

pay 16.2% more for transportation

 
Shanghai
Rabat
Gasoline (1 gallon) $4.96
CN¥33.21
$5.64
MAD54.88
Monthly public transit pass $29.83
CN¥199.59
$25.07
MAD243.90
New Volkswagen Golf 1.4 (standard edition) $19,374.76
CN¥130K
$30,080.62
MAD293K

Improve prices ·

pay 45.7% less for housing

 
Shanghai
Rabat
Internet connection
50 mbps or faster, cable/dsl
$10.55
CN¥70.59
$33.05
MAD321.54
1-Bedroom apartment in downtown area $1,036.96
CN¥6,938.07
$510.29
MAD4,964.96
1-Bedroom apartment outside city center $588.71
CN¥3,938.93
$263.71
MAD2,565.78

Improve prices ·

pay 79.6% less for childcare

 
Shanghai
Rabat
Private preschool for 1 child, monthly $1,413.50
CN¥9,457.42
$176.76
MAD1,719.82
Middle school for 1 child, two semesters $27,686.22
CN¥185K
$9,224.72
MAD89,753.43

Improve prices ·

pay 12.3% less for entertainment and sports

 
Shanghai
Rabat
Domestic/local beer (1 pint) $1.19
CN¥7.98
$5.01
MAD48.78
Cappuccino in mid-range area $3.35
CN¥22.41
$1.90
MAD18.45
Pack of cigarettes
Marlboro or similar
$3.73
CN¥24.95
$4.07
MAD39.57

Improve prices ·

pay 9.3% less for clothing

 
Shanghai
Rabat
Regular jeans
Levi's brand
$54.37
CN¥363.79
$46.95
MAD456.79
Regular dress
from H&M or similar store
$37.09
CN¥248.19
$39.52
MAD384.49
Running shoes
Nike or Adidas
$75.49
CN¥505.08
$90.77
MAD883.17

Improve prices ·

We average the price of thousands of data points entered by users across the world. Sources: MyLifeElsewhere's cost-of-living dataset (prices updated October 2026). How we calculate this

Share this

Compare countries by overall cost of living

See the cost of living in China vs. Morocco. This provides a comparison of the average cost of living from cities within China and Morocco.

Help us improve these prices

MyLifeElsewhere is a collaborative project. Please enter price information for your location to help assist us in making these comparisons more accurate. Learn more

Ask the Elsewhere Community

Join the Elsewhere community and ask a question about Rabat or Shanghai. It's a free, question-and-answer based forum to discuss what life is like in countries and cities around the world.