Skip to content
S
StatMate

Embeddable Widget

Chi-Square Test Calculator — Free Embed

Add a categorical-data analyzer to your page in seconds. Visitors enter a contingency table (or observed vs. expected counts) and get the chi-square statistic, degrees of freedom, p-value, and Cramér's V effect size — ideal for survey cross-tabs and frequency comparisons.

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/chi-square" width="100%" height="1180" style="border:1px solid #e5e7eb;border-radius:12px;max-width:760px" loading="lazy" title="Chi-Square Calculator by StatMate"></iframe>

Live preview

What the Chi-Square Test calculator computes

  • Chi-square test of independence for r×c contingency tables
  • Chi-square goodness-of-fit against expected frequencies
  • χ² statistic, degrees of freedom, and p-value
  • Cramér's V effect size for association strength
  • Expected-count table and APA 7th output

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

  • Survey and polling write-ups testing group differences
  • Biology/genetics pages checking observed vs. expected ratios
  • UX researchers comparing categorical outcomes across variants

Frequently asked questions

What is the minimum expected count?
A common rule is that expected counts should be ≥5 in most cells. The widget shows the expected-count table so visitors can check this assumption.
Does it handle larger than 2×2 tables?
Yes. The independence test supports any r×c table, not just 2×2.
Can I remove the StatMate link?
No — the attribution link is required and keeps the widget free to embed.

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

Open the full Chi-Square Test calculator →

← Browse all embeddable widgets