Skip to content
S
StatMate

Embeddable Widget

Correlation (Pearson & Spearman) Calculator — Free Embed

Let readers measure the relationship between two variables without leaving your page. This widget computes both Pearson's r (linear) and Spearman's rho (rank-based), the significance test, and the coefficient of determination R² — with an APA-formatted summary they can lift straight into a manuscript.

Copy & paste this embed code

Paste it into any HTML page, blog post, Notion embed, or website builder. No account needed.

<iframe src="https://statmate.org/embed/correlation" width="100%" height="1120" style="border:1px solid #e5e7eb;border-radius:12px;max-width:760px" loading="lazy" title="Correlation Calculator by StatMate"></iframe>

Live preview

What the Correlation (Pearson & Spearman) calculator computes

  • Pearson product-moment correlation (r)
  • Spearman rank-order correlation (rho) for non-linear or ordinal data
  • Two-tailed p-value and degrees of freedom
  • R² (proportion of variance explained)
  • APA 7th edition result string

How to embed it

  1. Copy the embed code above.
  2. Paste it into your page's HTML where you want the calculator to appear.
  3. Adjust width and height if needed — the widget is responsive.
  4. Publish. The calculator runs entirely in your visitor's browser.

Who uses it

  • Marketing/analytics blogs showing how two metrics move together
  • Psychology and social-science course pages
  • Data-literacy tutorials that need a hands-on example

Frequently asked questions

When should I use Spearman instead of Pearson?
Use Spearman when the relationship is monotonic but not linear, when data are ordinal, or when outliers distort Pearson's r. The widget reports both so visitors can compare.
How many data points can I enter?
The widget accepts paired X/Y lists of arbitrary length; it handles typical datasets of dozens to thousands of pairs in the browser.
Is attribution required?
Yes — the 'Powered by StatMate' link must remain. Embedding is otherwise free.

Want the full version with APA export, charts, and AI interpretation?

Open the full Correlation (Pearson & Spearman) calculator →

← Browse all embeddable widgets