# Paired t Test Calculator

Run paired-sample t tests from before and after values or precomputed paired differences

> Canonical page: https://elysiatools.com/en/tools/paired-t-test-calculator

- **Category:** Math & Numbers

- **Keywords:** paired t test, before after, dependent samples, paired differences, p value, calculator

## Overview

The Paired t Test Calculator allows you to quickly determine if there is a statistically significant difference between two related groups of data. By entering before and after measurements or precomputed paired differences, you can instantly calculate the t-statistic, p-value, and degrees of freedom to test your hypothesis with precision.

## Inputs

- **Before Values** (textarea): Enter before values
- **After Values** (textarea): Enter after values
- **Difference Values (Optional)** (textarea): Optional direct differences, e.g. after - before
- **Hypothesized Mean Difference** (number)
- **Alternative Hypothesis** (select)
- **Alpha** (number)
- **Decimal Places** (number)

## When to use

- Comparing pre-test and post-test scores for the same subjects to measure the effect of an intervention.
- Evaluating the effectiveness of a treatment or medication on a single group of patients over time.
- Analyzing matched pairs of data, such as measurements taken from twins or bilateral body parts.

## How it works

- Enter your paired data sets into the Before Values and After Values fields, or provide direct differences if you have already calculated them.
- Set your hypothesized mean difference, choose the alternative hypothesis (two-sided, greater, or less), and define your alpha significance level.
- Specify the number of decimal places for the output.
- Run the calculation to generate the t-statistic, p-value, degrees of freedom, and a clear true/false indicator of whether to reject the null hypothesis.

## Use cases

- Medical researchers comparing patient blood pressure readings before and after administering a new medication.
- Educators analyzing student test scores before and after a specific training module to measure learning outcomes.
- Fitness coaches tracking the performance metrics of athletes at the beginning and end of a training program.

## Frequently asked questions

### What is a paired t-test?

A paired t-test is a statistical procedure used to determine whether the mean difference between two sets of observations is zero. It is typically used when the same subjects are measured twice (e.g., before and after a treatment).

### Do I need to enter both before and after values?

No. You can either enter the raw before and after values, or you can skip those fields and directly enter your data into the Difference Values field if you have already computed the differences.

### What does the alpha value represent?

The alpha value (defaulting to 0.05) is the significance level of your test. It represents the probability of rejecting the null hypothesis when it is actually true.

### Can I perform a one-sided test?

Yes. You can change the Alternative Hypothesis setting from 'Two-Sided' to 'Greater Than' or 'Less Than' to perform a one-sided (one-tailed) test.

### How should I format my input data?

Enter your numerical values separated by commas, spaces, or newlines in the text areas. If using before and after values, ensure both datasets contain the exact same number of observations.

## Related tools

- [Fatigue Limit Calculator (Goodman / Gerber / Soderberg)](https://elysiatools.com/en/tools/fatigue-limit-calculator): Mean-stress fatigue correction under cyclic loading. Given stress amplitude σ_a, mean stress σ_m, and material σ_uts / σ_-1 (endurance limit) / σ_y, compute safety factors from three classical criteria: Modified Goodman (linear, conservative), Gerber (parabolic, better for ductile metals), and Soderberg (uses σ_y, most conservative). Reports the governing (smallest) value and whether the operating point lies inside the Goodman line.
- [Half-Life Calculator](https://elysiatools.com/en/tools/half-life-calculator): Exponential decay for radioactive isotopes and drugs: remaining amount, derived half-life, time to target, or steady-state accumulation. Uses N(t) = N0·e^(-λt).
- [Margin of Error Calculator](https://elysiatools.com/en/tools/margin-of-error-calculator): Calculate the margin of error for a mean or proportion from sample size, confidence level, and variability
- [One Sample t Test Calculator](https://elysiatools.com/en/tools/one-sample-t-test-calculator): Run a one-sample t test from raw data or summary statistics, including p-value and confidence interval
- [Standard Error Calculator](https://elysiatools.com/en/tools/standard-error-calculator): Calculate the standard error of the mean from raw sample values or summary statistics
- [T-Test Calculator](https://elysiatools.com/en/tools/t-test-calculator): Run one-sample or two-sample t-tests from raw data and inspect t statistics, degrees of freedom, and p-values
- [Two Sample t Test Calculator](https://elysiatools.com/en/tools/two-sample-t-test-calculator): Run an independent two-sample t test with pooled variance from raw data or summary statistics
- [Weighted Average Calculator](https://elysiatools.com/en/tools/weighted-average-calculator): Calculate a weighted average from paired values and weights, with contribution and normalized weight details

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion

## Related content

- [A/B Experiment Design, Sample Size, and Statistical Power](https://elysiatools.com/en/hubs/ab-testing-experiment-design-and-statistical-power): Plan an A/B experiment, size its evidence, select the right test, and review effect size and uncertainty before treating a result as actionable.
