StatFas emblem: a philosopher beside a rising bar chart StatFas.comAn Easy Way to Do Statistics

Dendrogram Generator

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

Assumptions to check

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.

Guides and tutorials

Frequently asked questions

Is the Dendrogram Generator free?

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.

Related tools