Use this tool when you want to group samples or variables by similarity, for example tumour samples by gene expression or patients by biomarker profile. Upload your data below (CSV, Excel or SPSS, or paste it), choose the distance and linkage, and run the analysis.
About the dendrogram generator
A dendrogram shows how observations merge into clusters step by step. Each leaf is an observation, and branches join at the height at which two clusters merge: low joins mean similar observations, high joins mean dissimilar ones. Cutting the tree at a chosen height gives the clusters.
The generator lets you choose the distance (for example Euclidean) and the linkage (Ward, complete, average or single), reports how faithfully the tree represents the original distances (cophenetic correlation), tests whether the data have any clustering tendency (Hopkins statistic), and picks the number of clusters from the mean silhouette width, unless you set it.
When to use it
Use it for genomics and expression data, patient stratification, microbiome and ecological samples, and any case where you want to see natural groups without defining them in advance. If you supply a known-group column, the tool also reports how well the clusters agree with it (adjusted Rand index).
What this generator reports
A dendrogram with the cluster cut line, colored clusters and optional known-group labels.
Cophenetic correlation, to show how well the tree preserves the original distances.
The Hopkins statistic (about .50 is random, above .75 indicates clusterable data).
Mean silhouette width for 2 to 10 clusters, with the best number chosen, and cluster sizes.
An APA7 results paragraph and an interpretation of every table and figure, available as a Word download after logging in.
Assumptions to check
Variables are numeric and on comparable scales; standardizing is usually advisable.
The distance and linkage match the question: Ward and Euclidean suit compact clusters, single linkage can chain.
Clusters are exploratory, not proof of real groups; check the Hopkins statistic and silhouette.
Outliers can form their own branches, so inspect them before cutting the tree.
How to report it in APA7
State the distance, the linkage, the number of clusters and how it was chosen, then report the mean silhouette width, the cophenetic correlation and the Hopkins statistic. The generator writes this paragraph and lays out the tables in APA7 style.
Customize and download
Change colors, fonts, font sizes and line widths in the figure style panel, then download each figure (PNG or SVG) and table (CSV), or the full set of figures, tables and interpretations as one Word file. Downloads need a free StatFas account; running the analysis does not.
Yes. You can analyze data and read all results without an account. Create a free account or log in only when you want to download figures, tables or the Word report.
Which linkage should I choose?
Ward’s method gives compact, similarly sized clusters and is a common default. Average linkage is a compromise, complete linkage gives tight clusters, and single linkage can chain observations together.
How is the number of clusters chosen?
The tool compares the mean silhouette width for 2 to 10 clusters and uses the best one, unless you set a number yourself.
Is my data uploaded to a server?
The analysis runs in your browser. Your data stays on your device while you work with the generator.