# How to merge 2 trees in roots magic

**URL:** <https://community.rootsmagic.com/t/how-to-merge-2-trees-in-roots-magic/13564>\
**Category:** RootsMagic\
**Tags:** question\
**Created:** [April 5, 2025, 1:01am UTC](https://community.rootsmagic.com/t/how-to-merge-2-trees-in-roots-magic/13564 "2025-04-05T01:01:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JJimenez](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JJimenez](https://community.rootsmagic.com/u/JJimenez)\
**Post date:** [April 5, 2025, 1:01am UTC](https://community.rootsmagic.com/t/how-to-merge-2-trees-in-roots-magic/13564/1 "2025-04-05T01:01:59Z")

</div>

Hi,  
I deleted a duplicated group of people, as a result there are 2 trees shown in the count tree tool, I need to merge them back to one tree,  
Thanks.

---

<div class="post-metadata">

**Author:** ![thejerrybryan](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.rootsmagic.com/thejerrybryan/32/404_2.png) [@thejerrybryan](https://community.rootsmagic.com/u/thejerrybryan)\
**Post date:** [April 5, 2025, 1:29am UTC](https://community.rootsmagic.com/t/how-to-merge-2-trees-in-roots-magic/13564/2 "2025-04-05T01:29:08Z")

</div>

If there are two trees, that means there really are two collections of people in your database that are disconnected. The connections that keep everybody in one tree can be really indirect. One person can be connected to another as the spouse of a spouse of a spouse, for example. Breaking any such indirect connection can break your tree into two trees.

You can’t really “merge” the two trees. If you want there to be one tree, you will have to find two people who actually are connected in the real world, no matter how indirectly, and then add additional people from the real world to connect the two two people together. One clue for a place to look would be at the duplicated group of people you deleted. Somewhere in there is where you probably need to re-establish a connection.

Another approach which is less likely to split your tree would be as follows. First, restore your database back to before you deleted the duplicated people. Then, instead of deleting the duplicated people, merge each pair of duplicates. Check your number of trees after each merge. I suspect that you would be able to complete merging all the duplicates without splitting your tree.

I do delete people from my database occasionally for a variety of good and valid reasons. But I think a best practice is to merge duplicated people rather than deleting one of them. There usually is some cleanup after each merge. But I think it’s a much safer procedure than are the deletes.

---

<div class="post-metadata">

**Author:** ![JJimenez](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JJimenez](https://community.rootsmagic.com/u/JJimenez)\
**Post date:** [April 5, 2025, 3:34am UTC](https://community.rootsmagic.com/t/how-to-merge-2-trees-in-roots-magic/13564/3 "2025-04-05T03:34:41Z")

</div>

Thanks, I’ll follow your directions,  
J.J.

---

<div class="post-metadata">

**Author:** ![JJimenez](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JJimenez](https://community.rootsmagic.com/u/JJimenez)\
**Post date:** [April 7, 2025, 11:29pm UTC](https://community.rootsmagic.com/t/how-to-merge-2-trees-in-roots-magic/13564/4 "2025-04-07T23:29:21Z")

</div>

Hi,  
It took some time, I have again one tree,  
Thanks Jerry,  
J.J.
