Correlation Coefficient Calculator (Pearson r)

The Pearson correlation coefficient (r) measures how closely two variables move together in a straight-line pattern. A result of +1 means every data point falls exactly on an upward-sloping line; a result of -1 means they all fall on a downward-sloping line; and a result near 0 means there is no detectable linear relationship between the two variables. Values between those extremes indicate the strength of the association, ranging from negligible through weak, moderate, strong, and very strong. The coefficient only captures linear relationships, so a curved or non-linear association may show a low r value even when the two variables are strongly linked in a different pattern. Alongside r, the calculator returns r squared (the coefficient of determination), which tells you what percentage of the variation in one variable is accounted for by the linear relationship with the other. For example, r of 0.7746 means r squared of 0.6000, so 60% of the variability in y can be explained by a linear relationship with x. Enter your x values and y values as comma-separated numbers. The two lists must have the same count and at least two pairs. The tool calculates the Pearson formula using the means of each variable, which is the standard method for sample data. It suits students running statistics assignments, researchers checking whether two continuous measures are related, and analysts exploring data before building regression models.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
0.7746
Pearson r (correlation coefficient)
r squared0.6000
StrengthStrong
DirectionPositive
Pairs (n)5

How it works

The calculator parses each list into numbers and confirms both have the same count (n). It computes the mean of x and y. Pearson r is the sum of (xi minus x-bar) times (yi minus y-bar) divided by the square root of the sum of (xi minus x-bar) squared times the sum of (yi minus y-bar) squared. r squared is r multiplied by r. The strength label uses the convention: 0.00-0.19 negligible, 0.20-0.39 weak, 0.40-0.59 moderate, 0.60-0.79 strong, 0.80-1.00 very strong, applied to the absolute value of r.

Worked example

With x values 1, 2, 3, 4, 5 and y values 2, 4, 5, 4, 5, the means are x-bar = 3 and y-bar = 4. The sum of products of deviations is 6. The sum of squared x-deviations is 10 and the sum of squared y-deviations is 6. Pearson r = 6 / sqrt(10 x 6) = 6 / 7.746 = 0.7746. r squared = 0.6000. The strength is strong and the direction is positive. These match the default values pre-filled above.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.