Phylogenetic Tree Maker
Paste DNA or protein sequences, build and compare neighbor-joining and UPGMA trees with bootstrap support and a parsimony score, or paste a Newick tree to draw it.
To make a phylogenetic tree from sequences, compute the evolutionary distance between every pair (for aligned DNA, the Jukes-Cantor distance d = −¾ ln(1 − 4p/3), where p is the fraction of differing sites), then cluster the distance matrix. Neighbor-joining (Saitou and Nei, 1987) gives an unrooted tree and does not assume a molecular clock; UPGMA gives a rooted tree and assumes equal rates in all lineages. Bootstrap support (Felsenstein, 1985) is the percentage of trees from resampled alignment columns that recover each group.
Free, runs in your browser. Nothing you enter is uploaded.
How to use it
- Paste three or more sequences in FASTA format. Aligned sequences (all the same length) give the best tree and unlock bootstrap support and the parsimony score.
- Choose neighbor-joining, UPGMA, or the compare view that draws both; pick the distance correction and the number of bootstrap replicates.
- Root the tree on an outgroup taxon or at the midpoint, switch between phylogram and cladogram, then download SVG for a figure or Newick for FigTree, iTOL or R.
- Already have a tree from IQ-TREE, RAxML-NG, MEGA, MrBayes or BEAST? Switch to Draw a Newick tree and paste it.
What you enter
- Three or more sequences in FASTA format, or a Newick tree
- Tree method (neighbor-joining, UPGMA or both)
- Distance correction for aligned input
- Bootstrap replicates (aligned input)
- Root (outgroup taxon, midpoint or none)
- Word length k for unaligned input
What you get
- Drawn tree or trees (phylogram with scale bar, or cladogram)
- Bootstrap support on internal branches
- Fitch parsimony score, variable and parsimony-informative sites
- Robinson-Foulds distance between the NJ and UPGMA trees
- Newick string with support values (copy or download)
- SVG download
- Pairwise distance matrix (table and CSV)
Formula
p = differing sites / compared sites | Jukes-Cantor d = −¾ ln(1 − 4p/3) | Poisson (protein) d = −ln(1 − p) | NJ Q(i,j) = (n − 2)d(i,j) − Σd(i) − Σd(j) | bootstrap = % of resampled trees containing the split
Gaps and N or X positions are skipped pair by pair. Neighbor-joining picks the pair that minimises Q(i,j) at each step; UPGMA joins the closest pair and averages distances weighted by cluster size. Negative neighbor-joining branch lengths are set to zero. Bootstrap replicates resample alignment columns with replacement and rebuild the tree with the same method; the Fitch score counts the minimum changes on the drawn tree, with multifurcations resolved by the most common state.
Worked example: six aligned isolates with one fast lineage
Input: Six 128 bp aligned sequences; Isolate_B shares three changes with Isolate_A plus 17 of its own; outgroup rooting; 100 bootstrap replicates
Result: Neighbor-joining groups A with B (bootstrap 100) and C, D with E; UPGMA pulls the fast Isolate_B outside every other sequence. Fitch scores 39 vs 42 changes, Robinson-Foulds distance 2
UPGMA's equal-rates assumption fails on the fast lineage. Neighbor-joining explains the alignment with fewer changes and recovers the true sister pair.
Questions
Do my sequences need to be aligned?
For a reliable tree, yes. If every sequence has the same length the tool treats them as aligned and uses site-by-site distances, and bootstrap support and the parsimony score become available. If they differ in length it falls back to an alignment-free word (k-mer) distance, which is fine for a quick look but not for publication. Align first with Clustal Omega or MAFFT and paste the aligned FASTA.
Neighbor-joining or UPGMA?
Neighbor-joining is the better default for real sequences because it allows different lineages to evolve at different rates. UPGMA assumes a constant rate (a molecular clock) and can misplace fast-evolving lineages, but it gives a rooted tree. The compare view draws both from the same data and reports how many splits differ (the Robinson-Foulds distance); if they disagree, trust neighbor-joining.
What do the numbers on the branches mean?
They are bootstrap support values: the percentage of replicate trees, each built from alignment columns resampled with replacement, that contain the same group. 70 or more is the usual rule of thumb for standard bootstrap (Hillis and Bull, 1993). Support says how consistently the data recover a group under this method, not the probability that the group is true.
What is the Fitch parsimony score?
The minimum number of character changes needed to explain the alignment on the drawn tree, counted with Fitch's (1971) algorithm, with gaps and N treated as missing. A lower score means the tree explains the data with fewer changes, so it is a quick way to compare the neighbor-joining and UPGMA trees. The tool scores the given trees; it does not search for the most parsimonious tree.
How do I root the tree?
Choose Outgroup taxon and pick a sequence known to have split off before the others; the root is placed on its branch. Midpoint rooting puts the root halfway along the longest tip-to-tip path and is a fallback when you have no outgroup. Neighbor-joining itself does not place a root; UPGMA always roots the tree by its clock assumption.
Can I draw a tree I made in IQ-TREE, RAxML-NG or MEGA?
Yes. Switch to Draw a Newick tree and paste the Newick string. Branch lengths and support values are read, and you can re-root, switch to a cladogram and export SVG.
Is this good enough for a publication tree?
For a quick look, teaching, or checking an alignment, yes. For a published tree, maximum likelihood (IQ-TREE, RAxML-NG) or Bayesian inference (MrBayes, BEAST) with a selected substitution model is the standard. You can paste the result back here to draw it.
Limitations
- Distance methods are quick but less accurate than maximum likelihood or Bayesian trees (IQ-TREE, RAxML-NG, MrBayes) for publication.
- The parsimony score is computed on the NJ or UPGMA tree; the tool does not search tree space for the most parsimonious tree.
- Bootstrap and parsimony need aligned input.
- Up to 60 sequences per run.
References
- Saitou N, Nei M (1987) Molecular Biology and Evolution 4:406-425.
- Sokal RR, Michener CD (1958) University of Kansas Science Bulletin 38:1409-1438.
- Jukes TH, Cantor CR (1969) In Munro HN (ed.) Mammalian Protein Metabolism, Academic Press, 21-132.
- Edgar RC (2004) Nucleic Acids Research 32:1792-1797.
- Felsenstein J (1985) Evolution 39:783-791.
- Fitch WM (1971) Systematic Zoology 20:406-416.
- Hillis DM, Bull JJ (1993) Systematic Biology 42:182-192.
- Robinson DF, Foulds LR (1981) Mathematical Biosciences 53:131-147.
Related reading
- Maximum Likelihood vs Neighbor Joining vs Parsimony vs Bayesian vs UPGMA
- Phylogenetic Tree Maker: Methods, Tools, and Best Practices
- Phylogenetic Tree Workflow: From Aligned Sequences to a Defensible Figure
- Building a Phylogenetic Tree from DNA Sequences
- Phylogenetic Tree Construction for Microbial Identification
- Molecular Phylogenetics and Evolution: Methods, Models, and Pitfalls
All free tools · By Dr. Zubair Khalid, DVM, MS, PhD.