Spearman correlation calculator
Check the rank relationship between two variables. Spearman works for ordinal scales, ratings, ranking positions and non-linear monotonic relationships.
X,Y pairs
One pair per line, for example: 3, 7
Interpretation
Change the inputs to recalculate.
In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.
Start freeData is not stored — calculation runs in your browser.
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.
Calculation examples
1 Importance ranking and satisfaction
2 Feature priority rank and complaint frequency
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.
Frequently asked questions
How is Spearman different from Pearson?
When should I use Spearman?
What does rho = 0.7 mean?
Can I use it on a 1–5 scale?
How many pairs do I need?
Automate your metrics
In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.
Start free
WooCommerce Post-Purchase Survey: 7 Questions, When to Ask and What to Do Next