Written and maintained by CASRAI Editorial Board
Published
On this page
An outgroup in a phylogenetic tree is a taxon, or a small set of taxa, that lies outside the group you are studying (the ingroup) and is used to place the root, which turns an unrooted tree into one with a direction. You choose it before or during analysis, name it in your software (IQ-TREE -o, ape root(outgroup = ...)), and then check that the root does not move when you swap it for another plausible outgroup.
This guide is for researchers who have an alignment or a tree and need to decide which taxon to root on. It covers what an outgroup does, how to determine and choose one using two published studies, the commands to set it, how to read the result and what to do when the root looks unstable.
What an outgroup does in a phylogenetic tree
What does outgroup mean in a phylogenetic tree?
An outgroup is a lineage placed outside the ingroup so that the tree can be rooted on the branch that connects the two. The ingroup is the set of taxa you want to describe; the outgroup is the reference point that tells you which of the ingroup lineages split first. In the ape documentation for root(), the outgroup argument names the tip or tips used to define the new root, and with two or more tips the most recent common ancestor of the ingroup becomes the root.
What is an outgroup in phylogenetic analysis?
In analysis terms, an outgroup is an input choice, not a result. Most phylogenetic software infers an unrooted tree, which shows which taxa group together but not which branching came first. The outgroup is the extra information that supplies direction. Because the root, and therefore which groups count as clades, depends on it, the choice is part of your methods and belongs in your report. See rooting a phylogenetic tree for the full command walk-through for outgroup, midpoint and non-reversible rooting.
What does an unrooted phylogenetic tree show?
An unrooted tree shows how taxa are related through shared branching but has no ancestral starting point, so it cannot say which group is ancestral or which taxa form a clade. Adding an outgroup chooses where the root sits and so fixes the direction. Rooting changes where the root is drawn, not the underlying branching pattern, which is why it can be done after the tree is built (see make a phylogenetic tree).
How does a phylogenetic tree show relatedness, and what is the difference between a cladogram and a phylogram?
Relatedness on a tree is read from shared nodes: two tips are closer relatives when they meet at a more recent common node, not when they sit next to each other on the page. A cladogram draws branch lengths with no meaning, so only the branching order matters; a phylogram scales branch lengths to inferred change, usually substitutions per site, and carries a scale bar. The outgroup matters in both drawings because it fixes the root. The reading rules are in how to read a phylogenetic tree.
How to choose an outgroup for a phylogenetic tree
Two peer-reviewed studies give the clearest published evidence on what choice does to a root. Neither is a recipe, but together they support four working rules.
How to find an outgroup in phylogenetic tree work: use a close relative with independent support
Graham, Olmstead and Barrett (Molecular Biology and Evolution, 2002) studied rooting with distant outgroups in the commelinoid monocots. They report that outgroups that carry real signal still have little power to choose among the optimal and nearly optimal rooting possibilities, and that this discriminatory power is stronger, in general, for more closely related outgroups. The practical reading is to prefer a relative that is as close to the ingroup as you can justify while still being clearly outside it. How you establish that it lies outside (earlier taxonomy, a published phylogeny, a separate dataset) is your own independent evidence and should be cited.
How to determine the outgroup: do not let a distant taxon decide the root by default
The same study modelled outgroups whose signal is lost, which behave like random sequences. Those outgroups preferred to attach to the three longest branches of the unrooted ingroup topology, and more specifically to long terminal ingroup branches rather than simply to the longest branch. They generally avoided nonterminal ingroup branches. In plain terms, a very distant outgroup can pull the root toward whichever ingroup lineage is evolving fastest. Treat a root that lands on a long terminal branch with a distant outgroup as a possible artifact, not as a finding.
Use several outgroups rather than one when the data allow
de la Torre-Bárcena and colleagues (PLoS ONE, 2009) used genome-wide EST data to examine outgroup choice and missing data in seed plant phylogenetics. They report that a limited choice of outgroups can lead to spurious inference of phylogeny, and cite earlier work finding outgroup choice critical in deep phylogenomic studies. To break up the long branch leading to the seed plants they included additional outgroup taxa, using four outgroups in place of one, and found the tree robust to the various outgroup combinations. They also note that adding informative characters can reach a point where outgroup choice plays a minimal role. Graham and colleagues make the matching point: adding genes or outgroups can improve the ability to discriminate among root locations.
Keep the outgroup monophyletic in your tree if you name more than one taxon
When you pass two or more tips to ape’s root(), the outgroup must form a single group on the tree. The documentation states that the operation fails and issues an error if the outgroup is not monophyletic. That is a mechanical rule of the software, and it is also a useful quick test: if the outgroup taxa you chose do not group together in your own tree, the choice needs a second look before you root.
Step-by-step: set and test an outgroup
- Write down the outgroup candidates and why each lies outside the ingroup. Cite the independent evidence for each one. Prefer closer relatives, and include more than one taxon if your data contain several suitable candidates.
- Make sure the outgroup taxa are in the alignment. An outgroup must be a tip in the tree you root. Align all taxa together; the outgroup is not added afterwards.
- Name the outgroup in IQ-TREE with
-o. The IQ-TREE command reference describes-oas specifying an outgroup taxon name to root the tree, and states that the output tree in the.treefilewill be rooted accordingly. Example:iqtree3 -s alignment.phy -o TaxonX. If you omit-o, the first taxon in the alignment is used for display; that is a default, not evidence of the root. See the IQ-TREE guide for the rest of the inference command. - Or reroot an existing tree in R with ape. Load the tree, then call
root(). The documented signature isroot(phy, outgroup, node = NULL, resolve.root = FALSE, interactive = FALSE, edgelabel = FALSE, ...). For a single outgroup tip,rt = root(tr, outgroup = "TaxonX", resolve.root = TRUE)reroots at the node below that tip. For several tips, pass a character vector:root(tr, outgroup = c("TaxonX", "TaxonY"), resolve.root = TRUE). - Confirm the root. In ape,
is.rooted(rt)returns TRUE when only two branches meet at the root or when the tree has a root edge. Because ape unroots the tree before rerooting, rerooting a tree that was already rooted can return a tree different from the original. - Repeat with each alternative outgroup set and compare. Keep the ingroup alignment and model the same. If the ingroup relationships you care about hold across all runs, the root is not driving your conclusion; if they change, report that sensitivity.
Worked example: a toy tree (illustrative)
This is an illustrative composite on invented taxa, not data from a study. Suppose an unrooted tree has five tips written in Newick form as ((A,B),(C,D),E); and E is the suspected outgroup. Running root(tr, outgroup = "E", resolve.root = TRUE) places the root on the branch leading to E, so E is the sister of the group formed by A, B, C and D, and the tree reads as two ingroup pairs, (A,B) and (C,D). If you instead choose c("C", "D") as the outgroup, the pair C and D is monophyletic in this tree, so ape accepts it and roots between that pair and the rest, which makes E a member of the remaining group. Choosing c("A", "C") fails because those two tips do not form a single group, and ape issues an error. The same five tips therefore give different rooted readings depending only on the outgroup you name, which is the reason to report and test it.
Output and how to read it
With -o, IQ-TREE writes the rooted tree to the .treefile. In either tool, look at where the outgroup attaches: it should sit on a single, comparatively long branch off the ingroup, and the ingroup should be a recognizable group on the other side of the root. Then read ingroup clades from the root outward (clades in a phylogenetic tree explains how to identify them) and read support values with the guidance in the how-to-read guide linked above. A support value on the branches around the root says how well the data support that grouping; it does not say that your outgroup was a good choice.
Troubleshooting an unstable or odd root
| What you see | What the sources say | What to try |
|---|---|---|
| The root lands on one long terminal ingroup branch | Random or signal-lost outgroups prefer the three longest branches and long terminal ingroup branches (Graham et al. 2002). | Use a closer outgroup, and do not report the root as a result without testing others. |
| Different single outgroups give different roots | Real outgroups can have little power to choose among near-optimal roots; more outgroups or genes can improve discrimination (Graham et al. 2002). | Add outgroup taxa or loci, then compare the rooted trees. |
| One outgroup taxon sits on a very long branch | Adding outgroup taxa broke up a long root branch in a seed plant study (de la Torre-Bárcena et al. 2009). | Include additional, closer outgroup taxa alongside it. |
| ape returns an error when you name several tips | The outgroup must be monophyletic (ape documentation). | Check how the chosen taxa group in your tree and fix the set. |
| The root differs from your input tree after rerooting | ape unroots the tree before rerooting (ape documentation). | Treat the new root as defined by your outgroup, not by the old one. |
Tools that accept an outgroup
| Tool | How you name the outgroup | Notes from the documentation |
|---|---|---|
| IQ-TREE | -o followed by a taxon name |
Roots the output tree in the .treefile; the command reference gives no guidance on which taxon to choose. |
ape (R package) root() |
outgroup as a numeric or character vector, or node for a known internal node |
Multi-tip outgroups must be monophyletic; the tree is unrooted before rerooting. |
| Methods without an outgroup | Midpoint or non-reversible models | Covered in the rooting guide linked above. |
Frequently asked questions
What does outgroup mean in phylogenetic tree?
It is a taxon outside the group under study, used to root the tree. The root is placed on the branch that connects the outgroup to the ingroup, which gives the tree a direction.
How to choose outgroup for phylogenetic tree?
Choose a taxon you can show, from independent evidence, lies outside the ingroup, and prefer a close relative: Graham et al. (2002) found discriminatory power stronger, in general, for more closely related outgroups. Where possible use more than one, as de la Torre-Bárcena et al. (2009) did with four.
How to determine outgroup in phylogenetic tree?
You decide it from prior knowledge, not from the tree itself: earlier taxonomy, a published phylogeny or a separate dataset. Then test it by rerooting with alternative outgroups and checking that your ingroup conclusions hold.
How to find outgroup in phylogenetic tree figures you did not build?
Look for the lineage that attaches at the root on its own branch, outside the group the figure is about; legends and methods sections usually name it. If the figure is unrooted, no outgroup has been applied.
What is the difference between a cladogram and a phylogram?
A cladogram shows branching order only, with meaningless branch lengths; a phylogram scales branch lengths to inferred change and has a scale bar. Both need a root to be read directionally.
Does an outgroup change which taxa are related?
The unrooted branching pattern is unchanged by rooting. The outgroup changes where the root is drawn, and therefore which groups appear as clades and in what order they split.
Sources
- PubMed (NLM): Graham SW, Olmstead RG, Barrett SCH. Rooting phylogenetic trees with distant outgroups: a case study from the commelinoid monocots. Mol Biol Evol 2002;19(10):1769-81, checked 2026-11-20
- PubMed Central (NLM): de la Torre-Bárcena JE et al. The impact of outgroup choice and missing data on major seed plant phylogenetics using genome-wide EST data. PLoS ONE 2009, checked 2026-11-20
- IQ-TREE documentation: Command reference (the -o option), checked 2026-11-20
- ape R package help: root, unroot and is.rooted, checked 2026-11-20
Data: Published findings on outgroup choice and rooting
Findings on how outgroup choice affects rooting, compiled from two peer-reviewed studies (Graham et al. 2002; de la Torre-Bárcena et al. 2009) and the IQ-TREE and ape documentation. Each row restates one finding or software rule with its source.
| Situation | Reported finding or rule | Source |
|---|---|---|
| Single or limited outgroup choice, deep phylogenomic data | Limited choice of outgroup(s) can lead to spurious inference of phylogeny | de la Torre-Bárcena et al. 2009 |
| Four outgroups used in place of one | Tree robust to various outgroup combinations; long root branch broken up | de la Torre-Bárcena et al. 2009 |
| Outgroup with signal lost (random) | Prefers the three longest branches of the unrooted ingroup topology and long terminal ingroup branches | Graham et al. 2002 |
| More closely related outgroups | Discriminatory power among rootings stronger, in general | Graham et al. 2002 |
| Adding genes or outgroups | Can improve ability to discriminate among root locations | Graham et al. 2002 |
| IQ-TREE -o taxon | Roots the output tree in the .treefile accordingly | IQ-TREE command reference |
| ape root() with two or more outgroup tips | Operation fails with an error if the outgroup is not monophyletic | ape root help page |
Sources
- Graham et al. 2002, Mol Biol Evol (accessed 2026-11-20)
- de la Torre-Bárcena et al. 2009, PLoS ONE (accessed 2026-11-20)
- IQ-TREE command reference (accessed 2026-11-20)
- ape root help page (accessed 2026-11-20)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







