Operelio

How to merge duplicate accounts in Salesforce

Open one of the accounts, click View Duplicates, choose up to three accounts, pick the one to keep as the principal and the field values to keep from each, and merge. The principal keeps its record ID, the other accounts' contacts, opportunities and other related records move to it, and the other accounts go to the Recycle Bin. You need Delete on accounts, and you must be an admin, the account owner or above the owner in the role hierarchy. Accounts Salesforce doesn't flag as duplicates are merged with the merge tool in Salesforce Classic.

By Operelio team · Updated November 26, 2026 · 10 min read

On this page11 sections
  1. 1Before you merge: who can, and what to check
  2. 2Ways to merge accounts in Salesforce
  3. 3How to merge accounts in Lightning Experience
  4. 4How to merge accounts Salesforce doesn't flag
  5. 5What moves to the kept account, and what is lost
  6. 6A worked example: three accounts for one company
  7. 7How to find duplicate accounts across the whole org
  8. 8Why you can't merge accounts in Salesforce, and the fix
  9. 9Can you undo an account merge?
  10. 10Find and merge duplicate accounts with Operelio's CRM health
  11. 11Frequently asked questions

Before you merge: who can, and what to check

A merge can't be undone, so check these before you start. The permissions are from Salesforce's merge help, and the blocks from its notes on merging accounts.

CheckWhy it matters
You have Delete on accounts, and you're an admin, the account owner or above the owner in the role hierarchyWithout both, Salesforce doesn't let you merge. Read access is enough to see the duplicates, not to merge them.
The accounts are the same kindBusiness accounts merge only with business accounts, and person accounts only with person accounts.
No contact is related to two of the accountsIf the accounts are indirectly related to the same contact, Salesforce asks you to remove the redundant relationship first.
Account team members have no values in unique custom fieldsThe merged account keeps every team member from the other accounts, and a value in a unique field blocks the merge. Clear the value, or take the unique flag off the field.
You know which account other systems point atA billing tool or warehouse that links to an account by its Salesforce ID still points at a merged-away account afterward. Keep the account they use as the principal, or update their link.
You're on a computerThe Salesforce mobile app can't merge accounts.

Ways to merge accounts in Salesforce

Every route ends in the same merge, three accounts at most at a time. They differ in how you find the duplicates and in what they need.

MethodHow it finds duplicatesAccounts per mergeWhat it needs
View Duplicates, in Lightning ExperienceYour duplicate rules, shown on the accountUp to 3Active duplicate rules and the Potential Duplicates component on the account page
Merge Accounts, in Salesforce ClassicYou search by nameUp to 3Classic switched on for you, and the Merge Accounts link under Tools
Duplicate record setsRecords your rules reported, or a duplicate job foundUp to 3Edit and Delete on accounts
Duplicate jobsRuns a matching rule across every accountUp to 3, from the job's resultsPerformance or Unlimited Edition, Customize Application and View All Data
The API's merge() call, or ApexYour own code decides3 a request, 200 requests a callA developer, and the same Delete access
A dedupe app, or a tool such as CRM healthIts own matching, across the orgDepends on the toolInstalling or connecting it

How to merge accounts in Lightning Experience

These are the steps in Salesforce's help for Lightning Experience. The duplicates you see come from your active duplicate rules, so an account they don't flag won't be listed.

  1. Open one of the accounts

    When the account has duplicates, a card or message on the page says so. Click View Duplicates to list them.

  2. Choose up to three accounts

    Select the accounts to merge, including the one you're on, and click Next.

  3. Pick the principal account

    The principal is the account that stays. Choose the one other systems link to, or the one with the most history, so its ID, Chatter feed and manual sharing carry on.

  4. Pick the field values to keep

    For each field where the accounts differ, select the value to keep, and click Next. Fields that aren't on the accounts' page layouts aren't offered, and the principal's values in those stay.

  5. Check and merge

    Read the summary on the last screen, then click Merge. The other accounts go to the Recycle Bin.

How to merge accounts Salesforce doesn't flag

Two accounts for one company often get past the duplicate rules: one has a billing city and the other doesn't, or the company renamed itself. Salesforce's help sends those to the merge tool in Salesforce Classic, which finds accounts by a name you type. You switch to Classic for the merge and back afterward.

  1. Switch to Salesforce Classic

    Click your profile picture and choose Switch to Salesforce Classic. If the option isn't there, an admin has hidden it, or your edition, such as Starter, has no Classic.

  2. Open Merge Accounts

    On the Accounts tab, click Merge Accounts under Tools. If the link is missing, you don't have the access to merge.

  3. Search for the accounts

    Type a word the account names share, such as Tarrow, and click Find Accounts.

  4. Select up to three and click Next

    Business and person accounts can both show in the results, but they can't be merged with each other.

  5. Pick the principal and the values, then merge

    Choose the account to keep, select the value to keep in each highlighted field, and click Merge. Switch back to Lightning Experience from your name at the top of the page.

What moves to the kept account, and what is lost

Salesforce's API guide puts the merge in one line: the main record stays, the others are deleted, and the main record becomes the parent of their related records. Its help adds what happens to each part of the account:

Part of the accountAfter the merge
Record IDThe principal's. Links to the other accounts' IDs point at deleted records.
Field valuesThe ones you picked. A value you didn't pick is gone from the account, kept only on the deleted record in the Recycle Bin.
Hidden and read-only fieldsThe principal's, including its sharing settings. The other accounts' values in fields you couldn't see are lost.
Contacts, opportunities, cases and other related recordsMove to the principal.
Campaigns and activitiesMove to the merged account, with some exceptions.
Created By and Created DateFrom the oldest of the accounts, whichever is the principal. The merge shows as the last change.
Chatter feedThe principal's only.
Account teamEvery member from every account, even from different teams.
SharingYour sharing rules apply to the merged account. Manual sharing comes from the principal only.
Child accountsBecome children of the principal. If that would make a loop in the hierarchy, the merge fails.
The other accountsGo to the Recycle Bin, with any brands they had.

A worked example: three accounts for one company

Say three accounts belong to one supplier (the company and people are made up). The sales team added the second when a rep didn't find the first, and the third came in with an import.

FieldAccount 1Account 2Account 3
Account NameTarrow MarineTarrow Marine Inc.TARROW MARINE
Billing City and StatePortland, ORPortland, OR(blank)
Phone(503) 555-0148(blank)(503) 555-0148
Websitetarrowmarine.example(blank)tarrowmarine.example
Industry(blank)Boat parts wholesale(blank)
OwnerDana RuizSam PatelDana Ruiz
Contacts1431
Open opportunities210
CreatedMar 4, 2019Aug 17, 2022Jan 9, 2024

How to find duplicate accounts across the whole org

View Duplicates shows one account's duplicates at a time, so it only helps once you've found one. Salesforce's standard account matching rule also needs more than a matching name: an account with no billing city or ZIP may not be flagged even when its name matches another. These are the ways to get a full list.

  1. Report on duplicate record sets

    Set your account duplicate rule to report on create and edit, then build a report on Duplicate Record Sets with Duplicate Record Items. It lists only duplicates saved since the rule started reporting.

  2. Run a duplicate job

    On Performance and Unlimited Edition, a duplicate job runs a matching rule across every account and lists the matches as duplicate record sets you can merge from.

  3. Add a matching rule on Account Name

    A custom matching rule with Account Name on its own catches accounts the standard rule misses. Clean the names first, since Exact only ignores case and spaces at the ends.

  4. Or export and sort the accounts

    Export Account Name, Website, Billing City and the account ID, take Inc, LLC, Ltd and punctuation off a copy of each name, and sort by it. Rows that end up together are your candidates, and the IDs tell you which accounts to open.

Why you can't merge accounts in Salesforce, and the fix

Most failed merges come down to access, the duplicate rules, or a relationship Salesforce won't break for you.

What you seeWhyFix
No View Duplicates on the accountThe duplicate rules for accounts are off, or the Potential Duplicates component isn't on the account pageActivate the standard account duplicate rule, and add the component in Lightning App Builder
The duplicate you know about isn't listedYour matching rule doesn't count it as a match, often because a billing city or ZIP is blankMerge it with the Classic merge tool, or fill in the missing field
No Merge Accounts link in Classic, or merging is refusedYou don't have Delete on accounts, or you aren't an admin, the owner or above the ownerAsk an admin for the access, or to do the merge
A message about redundant relationshipsA contact is related to two of the accountsRemove the contact's extra relationship, then merge
An error about unique fieldsAn account team member has a value in a unique custom fieldClear the value, or take the unique flag off the field
A person account and a business account won't mergeSalesforce never merges the two kindsMerge each with its own kind
A field is missing from the merge screenThe field isn't on the account page layout assigned to youAdd it to the page layout, or edit the principal before or after
An error about the hierarchyMaking one account the parent of the other's children would make a loopChange the Parent Account on one of them first
Lightning won't merge accounts in a relationship groupLightning Experience doesn't support itFollow Salesforce's notes on relationship groups

Can you undo an account merge?

Not as an undo. The other accounts sit in the Recycle Bin, usually for 15 days, and you can restore them from there, but what moved to the principal stays on it: you'd move contacts and opportunities back by hand.

So before a big batch, export the accounts you're about to merge, with their IDs and every field, so you have the values a merge throws away.

Find and merge duplicate accounts with Operelio's CRM health

CRM health reads Salesforce Contacts, unconverted Leads and Accounts, and lists duplicate companies with the rest of its findings. The check is free: by hand, once a month, for a CRM of up to 25,000 records on Free. Fixing, merges included, and a check on a schedule come with Starter and up, and an admin approves every fix.

Two accounts are a pair when their names match once case, punctuation and endings such as Inc, LLC and Ltd are set aside. A pair with the same website is listed apart from a pair where one or both have none, and two accounts with the same name but different websites are never a pair. For each name, the account with the most contacts is kept, a tie going to the oldest.

In the worked example above, all three accounts are one name to CRM health. Account 1 is kept, Account 3 pairs with it on name and website, and Account 2 pairs with it on name, since it has no website.

Before it merges, CRM health saves a backup of both accounts and reads them again. Then it uses Salesforce's own merge: the kept account keeps its ID and its values, the other account's contacts move to it, and the other goes to the Recycle Bin.

Frequently asked questions

How many accounts can you merge at once in Salesforce?

Three, counting the one you keep. The API has the same limit for each merge request. For more, merge in rounds into the same principal account.

What happens to contacts and opportunities when you merge accounts?

They move to the account you keep, with the other related records such as cases. Activities and campaigns move too, with some exceptions, and the Chatter feed comes from the kept account only.

Does merging accounts delete data in Salesforce?

The accounts you don't keep go to the Recycle Bin. Field values you didn't pick, and their values in fields hidden from you, don't carry over to the kept account.

Can you merge accounts with different names?

Yes. Duplicate rules won't list them, so use the merge tool in Salesforce Classic: search for a word both names share, select the accounts and merge. A developer can also merge any two accounts by ID with the API's merge() call.

Can you merge a person account with a business account?

No. Salesforce merges business accounts only with business accounts, and person accounts only with person accounts.

Who can merge accounts in Salesforce?

Someone with Delete on accounts who is also an admin, the account owner or above the owner in the role hierarchy. Merging accounts where a team member has more access than you also takes Modify All Data on accounts.

Next in CRM imports & cleanup How to merge duplicate companies in HubSpotMerge duplicate companies in HubSpot from the record: Actions, then Merge, two at a time. A merge can't be undone. What moves, what stays, and how to find them.9 min read

Find duplicate accounts across your whole CRM.

CRM health's check is free. Merges come with Starter and up.