Spearman correlation calculator
Paste X,Y pairs, one per line. You get Spearman's rho, its direction and its absolute value, with average ranks for ties.
- Checked against reference values
- Free, no sign-up
- Nothing leaves your browser
X,Y pairs
One pair per line, for example: 3, 7
Interpretation
Collect real answers in a SurveyNinja survey and see them in charts in the report.
Use this template See the questions firstData is not stored — calculation runs in your browser.
Ready-made template
Do it with your own respondents
The “Likert scale survey” template already has the questions. Put in your company name, share the link and watch the answers come in.
- Copy the template: the questions are written
- Share it by link, QR code or a widget on your site
- Read the results in the report with charts
New accounts get 14 days of Premium features, no credit card.
What is Spearman's rank correlation?
Spearman's rank correlation (rho) measures how consistently two variables move in the same order. Each variable is replaced by its ranks, with ties sharing the average rank, and rho is the Pearson correlation of those ranks. It runs from −1 to +1 and suits ordinal ratings and relationships that rise without forming a straight line. Charles Spearman described it in 1904.
How Spearman rho is calculated
-
Formula
X and Y values are converted to ranks, then the Pearson correlation between the ranks is calculated.
-
Ranks
The method looks at the order of values, so it is less sensitive to outliers than Pearson.
-
Monotonicity
Spearman detects a relationship when one variable generally rises with the other.
-
Range
rho runs from −1 to 1: the sign shows the direction, the absolute value shows the strength. The badge uses rule-of-thumb bands: below 0.4 weak, 0.4 to 0.7 moderate, 0.7 and above strong.
Calculation examples
-
Importance ranking and satisfaction
- Importance: 1..7
- Rating: 4, 5, 6, 6, 8, 9, 10
rho ≈ 0.991: the ratings rise almost perfectly with importance, and the two tied 6s share an average rank.
-
Feature priority rank and complaint frequency
- Team priority rank: 1, 2, 3, 4, 5, 6
- Complaint rank: 2, 1, 4, 3, 6, 5
rho ≈ 0.829: the two lists mostly agree, with neighboring items swapped.
What to avoid
-
Looking only for a straight line
Spearman is about monotonicity, not necessarily a linear relationship.
-
Reading causation
Correlation does not prove that one factor causes the other.
-
Ignoring ties
Equal values get average ranks. With many ties, interpret the result with care.
Next step
Collect the data for this analysis
Build the survey in SurveyNinja, share the link in your email or chat, or as a QR code, and export the answers to Excel, CSV or SPSS on every plan.
- Ready questions or AI from a description
- A link for your email or chat, a QR code or a widget on your site
- Charts in the report, export to Excel, CSV and SPSS
Frequently asked questions
How is Spearman different from Pearson?
Pearson measures a linear relationship between numeric values; Spearman measures the relationship between ranks and suits ordinal scales.
When should I use Spearman?
When the scale is ordinal, there are outliers, or the relationship is monotonic but not necessarily linear.
What does rho = 0.7 mean?
A positive rank relationship that this calculator labels strong. Its bands (0.4 and 0.7) are rules of thumb, not a standard. Higher values of X usually go with higher values of Y.
Can I use it on a 1–5 scale?
Yes. Spearman is well suited to ordinal ratings and rankings.
How many pairs do I need?
At least 3, but a reliable estimate of the relationship needs more observations.
Learn the method
Read how the method works and where its numbers come from.
Turn the numbers into a survey
Start from the “Likert scale survey” template: the questions are ready.
WooCommerce Post-Purchase Survey: 7 Questions, When to Ask and What to Do Next