Guides

How to add Gmail to Mail on a Mac

The steps in Mail and System Settings, a second Gmail account, where labels and All Mail end up, and the manual IMAP settings if sign-in fails.

A card titled System Settings, Internet Accounts: two Gmail accounts marked Added and an Add Account row.

To add Gmail to Mail on a Mac, open Mail, choose Mail › Add Account, type your Gmail address, sign in on Google’s page in your browser, and tick Mail. You never type your Google password into Mail itself. A second or third Gmail account is the same steps again.

The steps below follow Apple’s Mail and Mac guides as they read on 12 November 2026 (the macOS 27 versions) and Google’s help pages. They’re the same on a MacBook Air, a MacBook Neo or a desktop Mac, since Mail is the same app on each. I make Roost, another Mac mail app, so Gmail’s rules for mail apps are my daily work.

The short version

  • Mail › Add Account, or System Settings › Internet Accounts › Add Account. Both end in the same place.
  • Pick Google, sign in through the browser, then choose which apps use the account. Mail is the one you need.
  • For another Gmail account, repeat the steps. Each account gets its own inbox in Mail’s sidebar.
  • Manual settings: imap.gmail.com port 993, smtp.gmail.com port 587 or 465. A password-only setup needs an app password, which needs 2-Step Verification.
  • Work or school Gmail: your admin can switch IMAP off. Only they can switch it back on.

Add Gmail from the Mail app

  1. Open Mail and choose Mail › Add Account in the menu bar.
  2. Type your Gmail address and click Continue. Or click “choose from a list” and pick Google. If your version of macOS shows the list of providers first, pick Google there.
  3. Sign in to Google. Google’s own setup page says the sign-in happens through the browser. You type your password on Google’s page, not into Mail, and follow Google’s screens until it sends you back.
  4. Back on the Mac, a dialog asks which apps should use the account. Tick Mail.

A Google account carries more than mail, and Apple’s guide names Mail, Contacts and Calendar as examples of what you can switch on. If you only came for email, Mail alone is fine. The others can be turned on later.

Add it from System Settings

Same result, different door. Handy if you also want Google Calendar or Contacts on the Mac.

  1. Open the Apple menu › System Settings.
  2. Click Internet Accounts in the sidebar. You may need to scroll down.
  3. Click Add Account, enter your Gmail address and click Continue, or choose Google from the list.
  4. Sign in on Google’s page, then select the apps to use with the account.

An account added from Mail also shows up here. Click it to see its switches (Mail, Contacts, Calendar and so on) and turn any of them on or off.

Add a second or third Gmail account

Repeat either set of steps with the other address. If you are already signed in to Google in your browser, check that the sign-in page shows the account you mean to add and not the one you use every day.

Afterwards, each account has its own inbox under Inbox in Mail’s sidebar. Apple’s guide: click the arrow next to a mailbox such as Inbox, then select an account to see only that account’s messages.

Two settings are worth a look once you have more than one. Mail › Settings › Composing › “Send new messages from” decides which address a new message goes out from; you can pick one, or let Mail choose from the first recipient’s address and the mailbox you have selected. And in Internet Accounts, the Details button changes an account’s description, so you can call them “Work” and “Personal.”

Where labels, All Mail and Archive show up

Gmail doesn’t have folders. It has labels, and one letter can carry several. Mail apps expect folders, so Google translates: “Gmail treats labels as folders for the purposes of IMAP.” In Mail you will see:

That explains two things that look like bugs. A letter with two labels sits in two mailboxes and in All Mail, so a search can list it three times. And deleting a letter from the inbox may only take the Inbox label off: Google says you’ll “find messages you delete from an IMAP folder in your ‘All Mail’ label.”

If the first download crawls or Mail keeps stalling, Google’s advice is to cap what each folder syncs. In Gmail on the web: Settings › See all settings › Forwarding and POP/IMAP › Folder size limits, and limit IMAP folders to 10,000 messages or fewer. For anything else that breaks after setup, I’ve collected the fixes in Gmail not working in Mac Mail.

Manual IMAP and SMTP settings, and when you need an app password

You rarely need these. The Google option sets everything up by itself, and Google prefers it: Gmail “no longer supports third-party apps or devices which require you to share your Google username and password.” The manual route is for when the browser sign-in won’t complete.

SettingValue
Incoming server (IMAP)imap.gmail.com, port 993, SSL/TLS
Outgoing server (SMTP)smtp.gmail.com, port 587 with TLS (STARTTLS), or port 465 with SSL
User nameYour full Gmail address
PasswordAn app password, not your Google password
Outgoing authenticationOn, same user name and password

To use them in Mail, choose Mail › Add Account, pick the “Other” account choice instead of Google, and enter your address and the app password. If Mail asks for servers, they are the ones above. To change a port later, open Mail › Settings › Accounts › Server Settings and untick “Automatically manage connection settings.”

An app password is a 16-character code Google makes for one app. You create it at myaccount.google.com/apppasswords, and Google’s rules are strict:

Google also says app passwords “aren’t recommended and are unnecessary in most cases.” For Mail on a current Mac that holds: use the Google option if it works.

IMAP itself needs no switch on a personal account. Since January 2025 Google has removed the Enable IMAP setting, and IMAP is always on.

Work and school accounts (Google Workspace)

A Gmail address on your company’s or school’s own domain follows the same steps: Add Account, Google, browser sign-in. Two things differ.

First, your admin decides whether mail apps may connect at all. The switch is in the Google Admin console under Apps › Google Workspace › Gmail › End User Access, as “Enable IMAP access for all users.” An admin can also allow only certain mail apps. If the account won’t connect, ask whoever runs your Google account. Google says a change there can take up to 24 hours to reach you.

Second, password-only sign-in is gone. Workspace accounts stopped accepting it on 14 March 2025. If your account was added to Mail years ago with only a password and has stopped working, Google’s fix is to remove the account and add it again with the Google option.

Remove a Gmail account from Mail

  1. Choose Mail › Settings and click Accounts.
  2. Select the Gmail account and click the Remove button.
  3. If Calendar or Contacts use the account too, Mail sends you to Internet Accounts. There, select the account and turn Mail off, or click Delete Account to take it off the Mac entirely.

Apple’s warning is worth reading before you click: removing an account deletes its messages from the Mac. The copies on Google’s servers stay, so nothing is lost from Gmail itself. Apple suggests copying anything you want to keep on the Mac into a mailbox under On My Mac first.

If you only want a break from an account, untick “Enable this account” in the same Accounts pane. The mail stays where it is and comes back when you tick it again.

When Mail gets awkward with several Gmails

One Gmail account in Mail is fine. With three or four, the label translation starts to cost you. Every account brings its own All Mail, searches return the same letter from more than one mailbox, and the delete and archive settings have to be checked account by account, since Mailbox Behaviors is set per account.

The ways out are the browser, a Gmail-only Mac app, or a mail app built for many inboxes. I compared eleven of those in the best Mac email client for multiple accounts, and the other Gmail routes are in Is there a Gmail app for Mac?

Roost, the one I make, is in that last group. It puts several Gmail accounts next to Outlook, iCloud, Zoho, Yandex or any IMAP inbox in one list, shows a letter that sits in both Inbox and All Mail once, and keeps the mail on your Mac with no Roost server in between. One honest difference from Mail: Roost connects to Gmail with an app password today, so you need 2-Step Verification on. The steps are here. It runs on Apple silicon Macs with macOS 15 or later, and it’s free for 3 days, then $29 once for the first 100 copies and $49 after that.

Questions

How do I add Gmail to Mail on a Mac?

Open Mail and choose Mail › Add Account. Type your Gmail address or pick Google from the list, sign in on Google’s page in your browser, then tick Mail in the dialog that asks which apps should use the account.

How do I add a second Gmail account to Mac Mail?

Do the same steps again with the other address: Mail › Add Account, Google, sign in. Each account gets its own inbox under Inbox in the sidebar.

What are the Gmail IMAP settings for a Mac?

Incoming: imap.gmail.com, port 993, SSL/TLS. Outgoing: smtp.gmail.com, port 587 with TLS or 465 with SSL. The user name is your full Gmail address. The password must be an app password, which Google only offers with 2-Step Verification on.

Do I need an app password to add Gmail to Apple Mail?

No, not if you pick Google when adding the account. That route signs in through the browser. You need an app password only if you add Gmail as an “other” mail account with a user name and password.

Why won’t my Gmail account add to Mail on my Mac?

The usual causes are the wrong Google account in the browser, a work account whose admin has IMAP off, or an old password-only setup that Google no longer accepts. Remove the account and add it again with the Google option. More causes and fixes are in Gmail not working in Mac Mail.

Does removing Gmail from Mail delete my emails?

It deletes the copies on the Mac. Apple’s guide says the copies on the mail server remain, so your mail is still in Gmail on the web and on your phone.

Sources