← All text tools

Clustering and PCA Calculator

Clusters the rows of a data table with K-means or hierarchical clustering and computes principal components with eigenvalues, explained variance, loadings and scores.

  • Free
  • No sign-up
  • Works on any device

About Clustering and PCA Calculator

Multivariate tools find structure in a table with several columns. K-means groups the rows into k clusters around centres, trying several k-means++ starts and reporting inertia, the share of variation explained, silhouette and an elbow table. Hierarchical clustering joins the closest groups step by step with single, complete, average or Ward linkage and cuts the tree into k clusters. Principal component analysis rotates the data onto axes ordered by variance and gives eigenvalues, explained variance, loadings and scores. Tick standardize when the columns use different units.

How to use Clustering and PCA Calculator

  1. Choose K-means, hierarchical clustering or PCA.
  2. Paste the table with one row per case, set k or the linkage, and tick standardize if units differ.
  3. Read the cluster sizes and centres, the merge steps, or the components and loadings.

Why use this tool?

Also known as

Frequently asked questions

How do I choose the number of clusters?

Look at the inertia table for an elbow where adding a cluster stops helping much, and at the silhouette, where higher is better. Use what you know about the data as well; no formula decides it alone.

Why can K-means give different answers on different runs?

The starting centres are random. The tool runs ten starts with a seed you control and keeps the lowest inertia, so the same data and seed always give the same result.

Should I standardize before PCA?

If the columns have different units or very different ranges, yes. The components then come from the correlation matrix. Without it, the column with the largest variance dominates the first component.

Is Clustering and PCA Calculator free?

Yes. Clustering and PCA Calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.