How to setup Gmail using Google Sync (ActiveSync)

Coming from another platform where you're used to the Gmail app on Android or the instant push of BlackBerry mail and curious how to get that on your iPhone? Well good news -- Google licensed Exchange ActiveSync from Microsoft and offers Google Sync for iPhone (and other devices). So if you set up your Gmail (or Google Account) as an Exchange account you get push email, calendars, and contacts.

  1. Launch the Settings app.
  2. Tap Mail, Contacts, Calendars.
  3. Tap Add Account.
  4. Tap Microsoft Exchange.
  5. For Email, enter your full Gmail or Google Account email address (i.e. or
  6. Leave the Domain field blank. (Really.)
  7. Again, enter your Gmail or Google Account email address as the Username. (Yup, that's twice.)
  8. Enter your Gmail/Google Account password for Password.
  9. Tap Next.
  10. When the Server field appears, enter
  11. Tap Next.
  12. Select what you want to sync (Mail, Calendar, and Contacts).

WARNING: Your iPhone will ask if you want to delete all existing data and replace it with Google data, or merge the two. What you choose depends on how you store your data. If everything is in the Google Cloud, choose replace. If you have a mix of data from, for example, Outlook as well, choose merge.


← Previously

iPhone Live! podcast tonight!

Next up →

New and updated iPhone and iPad apps for Thursday, February 17

There are 72 comments. Add yours.

hahajdu says:

why would anyone do that? My normal gmail push works perfectly. whenever i send myself an email my phone rings 1 sec after i hit the send button on my pc..

Robert says:

Because exchange also offers Contacts syncing whereas IMAP doesn't. What Exchange doesn't offer is Notes syncing. But as we all know Contacts trump Notes.

CPAmember says:

IMAP also offers contacts and calendar sync. POP doesn't.

Roland says:

Some IMAP systems may sync contacts, but Google's IMAP does not sync contacts with the iPhone. It only syncs mail, contacts, and tasks.
On a side note, what's really nice about Google Sync'ing of contacts is that only those with label "My Contacts" show up on your phone, but the rest of your contacts are still searchable.

Tommy says:

I set email like this using exchange and iPhone keeps asking for exchange password

Brian says:

In addition to the reasons already given, not everyone only uses gmail and might prefer to have just one email app as opposed to their mail client plus the gmail one. For example, I am required to have access to my work account on my phone and it is illegal for me to have my work emails forwarded to my gmail account due to HIPAA regulations.

JhonnyC says:

Question: if I'm syncing my mail with my Mac my iPhone gets a second gmail (imap version because that's what's on my can I get my to use the google exchange version so they can sync properly?

Brian Tufo says:

I have my GMail set up this way and everything syncs and works perfectly.

JhonnyC says:

So your osx has a google exchange gmail account?

jgr627 says:

Whoa please let me know too cause I have the same set up

Brian Tufo says:

I apologize I read your question wrong. When I had my GMail setup as IMAP on my phone and I would delete mail on my phone it wouldn't always "sync" with my web version on my computer for whatever reason. Ever since I changed to Exchange its never had issues. Again my apologies.

f.kroessbacher says:

There is one big Problem i think. If you delete a message in one the iphone with exchange sync it goes to "all mail" in gmail and not in the trash

xlnzee says:

The only downside I found was that you can't delete mails, it's says delete when you swipe but it actually archives the mails. Some way to change that would be great!!

Simon says:

Is anyone else fed up with everyone calling ActiveSync "push" email..!! It's not!
BlackBerry, technically, is the only solution that is true push solution.
ActivveSync and all others based on it, are pull!!
If you ever check out the server logs for ActiveSync, you see the constant polling off all these devices which are logged in to the system allowing them to see when new email is in their mailbox.
Ok, it is one step up from the polling of pop mail every 5 or 10 mins, but not push!
Rant over! :o)

fmbimmer says:

Wrong...what a surprise.
I maintain my companies email servers, the Microsoft Exchange platform is push email, 0% pull. If you would like specifics I would love to provide them.

Simon says:

So how does your exchange server know where to PUSH the notification that new email is waiting??
RIM/BlackBerry are able to offer this as each Blackberry device has a PIN (PID) that is recorded in their NOC, your BES or BIS server PUSHES notification to this device via that pin directly to the device, no matter where in the world it is.
ActiveSync relies on the iPad or iPhone to be logged onto the Exchange server 24/7 to be able to know if there is a message waiting or not.
I can show you the server logs of my company, and my clients companys to!!
Basically, BlackBerry server only contacts a device when there is something for it to collect.
AcvtiveSync relies on the DEVICE to log into ActiveSync and stays logged in waiting for something to happen.

Simon says:

Just take a look at your server logs and see how often your devices contact the exchange server, even when they're not receiving mail!!

Tino72 says:

Is one better on battery over the other? Just switched to exchange and deleted from gmail app

Simon says:

Honestly couldn't tell you i'm afraid,

Brian Tufo says:

I have had mine set up this way for a few months now and no issues with battery life at all.

mark419ny says:

to xlnzee - in your mail settings turn archive off and will delete your email instead of archive it. when you set up these accounts auto archive is turned on just turn it off and you wont archive you will delete it as you want

xlnzee says:

When you setup Gmail thru Exchange, there is no option to turn archive Off, but the option is available when setting up normal Gmail option.

peeko says:

No notification? Or am I missing something?!

TK says:

If I set up my gmail as exchange to get my contacts over, then I delete it from the exchange will my contacts be gone?

gquaglia says:

Yes, on the phone anyway. They will still be in Google.

Jindofox says:

In my experience, this setup doesn't work well for Gmail. It's slower, less reliable, and burns more battery power. You also give up some features like editable drafts. See Google's page for more details:
I use two configurations on my device. This combo works best for me:

  1. the Exchange setup as described above for Contacts and Calendars (the instant sync works well, especially if you have a big address book that you are always updating). I have Mail turned OFF in this account.
  2. Straight Gmail setup for Mail and Notes. I have Calendars turned OFF in this account. You don't need to specify folders, and you get the option to delete or archive messages (archive is set by default).

Hope this is helpful ...

sting7k says:

I haven't any reliability issues for months. It is faster than IMAP.

Brian Tufo says:

This is also my experience. It seems much faster getting mail to my device and hasnt had any issues to date.

rj5570 says:

What I want to know is, how to snyc my Exchange calendar to my account. I wish there was a setting to sync calendar to my iPhone's exchange calendar. Plz apple, give us that!

Rickerd says:

Now I'm confused? If I don't need/want to sync my contacts, calender & notes to my Gmail account... should I just set up through the GMail option? All I care about is that my Gmail account along with it's sub-folders sync up. So that when I move/delete/read an email on my iPhone, it moves/deletes/reads it on my computer & vise versa.

sting7k says:

The last step is deciding what you want to sync; mail, contacts, calenders. You can turn off what you don't want to sync and only do email.

FatherB says:

Does this mean that the Google service is essentially what we get from MobileMe...without the $100/yr expense? Can I actually get the "push" experience without paying the money? I am still unclear on the differences.

gquaglia says:

Plus, if you ever decide to change platforms (Android, WP7, ect) you will still be able to use Google and sync your info. Mobile Me is iphone only.

FatherB says:

Unbelievable! Can I set this up and test it without deleting the mobileme account first?

Brian Tufo says:

Y absolutely can. Give it a shot. I got rid of MobileMe recently as well as there were too many issues with it for me to use and justify the cost. GMail IMO is much better and faster and's FREE.

gquaglia says:

You can run both Mobile Me and Google Exchange. I did before deciding Mobile Me was a waste of money.

FatherB says:

Awesome...thanks for the help, folks.

DubbDee says:

So I have this set up exactly as outlined in the article. Am I supposed to get a notification when a new email arrives? I sent an email from my work account to my gmail account and get no notification.

Brian Tufo says:

It alerts just like every other email. You will get the email tone or vibration. I am jailbroken and even get my emails in LockInfo just like any other type of email comes in to the phone.

joseph111 says:

definitely wanna make your EXCHANGE account the DEFAULT account; refer to my comment below. kthx

tipbr says:

Does anyone know if it is possible to setup google active sync on outlook with similar server settings? It would be nice to have outlook sync contacts and calendar to google.

gobrewcrew says:

I did the set up as explained but never got the messageWARNING: Your iPhone will ask if you want to delete all existing data and replace it with Google data, or merge the two. What you choose depends on how you store your data. If everything is in the Google Cloud, choose replace. If you have a mix of data from, for example, Outlook as well, choose merge.However the mail function is working as advertised. I am not able to get calendar and contacts to sync with google. any help?

Mike says:

Is it possible that anyone can explain how to search for mail outside three days while on google exchange? Every time i try to search for old mail it says The connection to the server failed.

joseph111 says:

make sure that you set your EXCHANGE account as your default account; my phone did not update immediately ("push") until i made this adjustment.

Expatriado says:

I have some calendar entries on my iPhone and some others on my gmail account. Will they merge in a single calendar on my iPhone? What about contacts? Will they merge and appear both on my phone and my gmail account? It would be great to have everything synchronized.

James says:

I used this technique when I first got my iphone. Pushed great, but I was unable to search folders for mail. Kept getting "cannot connect to server" errors. Finally just setup gmail and use boxcar for push.
I also discovered that you can sync your contacts (gmail anyway) through itunes. may not be as convenient as over the air, but it beats having them removed if you remove exchange.

Luancuvi says:

Ok, I am trying an iphone 3gs, if I like it I will switch from bb to iphone4. I am a completely illiterate about the iphone world and e-mail management is what I am concerned the most.
I have 5 e-mail accounts set on my bb, 3 corporate accounts (from 2 different corporations), one gmail plus one hotmail... Does it mean I can only get that on my gmail account?

Martin says:

This is in many ways great, but the annoying bit is that data fields that I've taken for granted for years and years and have been using in Outlook / on all phones (including the iPhone) disappear. So far I've only seen one ("Other number") but I wouldn't be surprised if there are more.
It's annoying as I have multiple details under one contact, and a good few of my contacts have the Other number field in use. Sure, I can manually change these to "Fax work" or something else, but it would be much easier if Google supported what is by all accounts a standard.
Overall it is a winner however, and it's good to know everything is now synced with Google, though I only use Exchange for Contacts. Mail, Calendar and Notes are synced using the vanilla Gmail option as I want my Notes, want editable drafts in Mail, and don't understand the benefit of syncing Calendar with Exchange when the Gmail option works perfectly.

Tommy says:

I set up email this way using exchange and iPhone keeps asking for exchange password

John says:

Love this gmail tutorial! It was very helpful! Thank you for taking the time to do all of that.

Don Mccarty says:

I have set this up as instructed and the invitee button appears. Thanks for the tip. However, the invitations do not seem to be going out. I've sent emails via the new account I setup and they work but not the mail invites. Have I setup something up incorrectly?

Patrick Bardon says:

Thanks for the tip as well. Works fine for incoming emails. Fails for sending emails. Any idea?

Annalise Langlois says:

Awesome article.Really looking forward to read more. Really Great.

Providencia Rose says:

Cool vid u just made, need not be ashamed, who's the chick btw?

free ipad no offers says:


candidates needed for ema jobs says:

Hello there, simply changed into aware of your blog via Google, and located that it is really informative. I am gonna be careful for brussels. I will be grateful in the event you continue this in future. A lot of people can be benefited out of your writing. Cheers!

online marketing|offline marketing|online and offline says:

Thank you for every other informative web site. The place else may just I get that type of info written in such an ideal way? I have a undertaking that I'm just now working on, and I've been at the look out for such information.

for marriage says:

I have learn a few excellent stuff here. Definitely price bookmarking for revisiting. I wonder how so much effort you place to create one of these magnificent informative site.

rekla,ma opole says:

Woah this weblog is fantastic i like reading your articles. Stay up the good paintings! You know, a lot of persons are searching round for this information, you can help them greatly.

yugioh starter decks says:

Woah this blog is magnificent i love studying your posts. Stay up the good work! You recognize, many persons are looking around for this info, you can aid them greatly.

Blanch Muscara says:

Do you might have a spam issue on this site; I also am a blogger, and I was wondering your situation; weve produced some great techniques and were looking to swap solutions with other people, be positive to shoot me an e-mail if interested.

Jasmine Zachariah says:

Really wonderful site thank you so much for your time in publishing the posts for all of us to learn about.

Franklin Raffone says:

I want to store all the information I have about a client in one Word document. This information may come from calls, their website etc. Do you know of a good template for this? If not, do you at least know what it is called to make it easier for me to search for it?

cheap snapback hats says:

Hi there very cool site!! Guy .. Excellent .. Amazing .. I will bookmark your blog and take the feeds additionally?I'm satisfied to seek out so many useful information here within the submit, we want develop more techniques in this regard, thank you for sharing. . . . . .

Alona Delaware says:

I got what you mean , appreciate it for putting up.Woh I am pleased to locate this internet site by means of google.

reise says:

It's actually a cool and useful piece of information. I am glad that you just shared this helpful info with us. Please stay us informed like this. Thanks for sharing.

now says:

Very great post. I just stumbled upon your blog and wished to say that I've truly enjoyed browsing your blog posts. After all I will be subscribing on your rss feed and I hope you write once more very soon!

mini game says:

It's really a cool and useful piece of info. I'm glad that you shared this helpful info with us. Please stay us up to date like this. Thanks for sharing.

auto surf web, Website traffic, likes facebook, Twitter says:

hey there and thank you for your information ? I have certainly picked up something new from right here. I did then again expertise a few technical issues using this web site, as I skilled to reload the web site a lot of times prior to I could get it to load properly. I had been pondering if your hosting is OK? No longer that I am complaining, however sluggish loading cases times will very frequently have an effect on your placement in google and could harm your quality score if ads and marketing with Adwords. Well I am adding this RSS to my e-mail and can glance out for a lot extra of your respective exciting content. Ensure that you replace this once more very soon..

camping list says:

Heya i am for the first time here. I came across this board and I find It truly helpful & it helped me out much. I'm hoping to give something back and help others such as you aided me.

Erik K says:

I ran across this while trying to set up my new HTC ONE X.
I've had about 10 iphones and after #2, I got spoiled with push email. I tried the HTC email app, but don't like the schedule. I tried the gmail app for Android, but hate conversation threading.
My Solution:
Click settings / Accounts & sync...
Click +add at the top...
Click Exchange ActiveSync...
Use for the server, but leave domain empty
Enter in the 2 appropriate fields
Enter your password
The rest is a bit foggy, but I set it up for push email, contacts and calendar.
Make sure ActiveSync in the phone is turned on.
My personal preference was to also switch off threading
In the phone, I set peak times as all days and set the times for the times I'm usually checking email. I set off-peak times to sync every couple hours.
Works perfectly for me now. I get push email, without having to put up with threaded conversations from the gmail app.
I also have a Google account set up, but it doesn't sync calendar, contacts or email... Just the rest so my phone and pics stay backed up.
Hope this helps those wanting to get this set up in their Droids.