# One Sample t Test Calculator

Run a one-sample t test from raw data or summary statistics, including p-value and confidence interval

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

- **Category:** Math & Numbers

- **Keywords:** one sample t test, t statistic, p value, confidence interval, hypothesis test, calculator

## Overview

The One Sample t Test Calculator allows you to determine if the mean of a single sample significantly differs from a known or hypothesized population mean. You can input raw data values or summary statistics to instantly calculate the t-statistic, p-value, degrees of freedom, and evaluate the null hypothesis based on your chosen significance level.

## Inputs

- **Data Values** (textarea): Enter values separated by commas, spaces, or new lines
- **Sample Mean (Optional)** (number)
- **Sample Standard Deviation (Optional)** (number)
- **Sample Size (Optional)** (number)
- **Hypothesized Mean** (number)
- **Alternative Hypothesis** (select)
- **Alpha** (number)
- **Decimal Places** (number)

## When to use

- When comparing a sample average to an established industry standard or historical baseline.
- When you need to determine if a new process or intervention has significantly changed the mean outcome.
- When verifying if a batch of manufactured products meets a specific target measurement.

## How it works

- Enter your raw data values separated by commas, or input summary statistics including the sample mean, standard deviation, and sample size.
- Specify the hypothesized population mean you want to test against.
- Select the alternative hypothesis (two-sided, greater than, or less than) and set your alpha significance level.
- The calculator computes the t-statistic, degrees of freedom, and p-value, indicating whether to reject the null hypothesis.

## Use cases

- Quality control testing to ensure product weights match the advertised label.
- Academic research comparing student test scores against a national average.
- Business analytics evaluating if average customer satisfaction scores exceed a target benchmark.

## Frequently asked questions

### Can I use this calculator without raw data?

Yes, you can leave the raw data field blank and input the sample mean, sample standard deviation, and sample size directly.

### What does the alpha value represent?

Alpha is the significance level, typically set to 0.05. It represents the probability of rejecting the null hypothesis when it is actually true.

### How do I format raw data inputs?

You can enter your raw data values separated by commas, spaces, or new lines in the Data Values text area.

### What is the difference between two-sided, greater, and less?

A two-sided test checks for any difference from the hypothesized mean. 'Greater' or 'less' are one-sided tests checking if the sample mean is specifically higher or lower.

### What outputs does the calculator provide?

It outputs the calculated t-statistic, p-value, degrees of freedom, and a boolean result indicating whether to reject the null hypothesis.

## Related tools

- [Duct Size Calculator (Flow Rate × Velocity)](https://elysiatools.com/en/tools/duct-size-calculator): Size a duct cross-section from the air flow rate Q and the design mean velocity v: area A = Q/v. Circular duct diameter D = √(4A/π). Rectangular duct with aspect ratio r = a/b gives b = √(A/r) and a = r·b, plus the ASHRAE equivalent diameter D_eq = 1.30·(a·b)^0.625/(a+b)^0.25. Flow rate in m³/s/m³/h/CFM, velocity in m/s; dimensions reported in mm and inches.
- [Effect Size Calculator](https://elysiatools.com/en/tools/effect-size-calculator): Calculate Cohen d, Hedges g, Cohen h for proportions, or correlation r effect sizes from summary statistics
- [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
- [Paired t Test Calculator](https://elysiatools.com/en/tools/paired-t-test-calculator): Run paired-sample t tests from before and after values or precomputed paired differences
- [Pipe Pressure Drop Calculator (Darcy-Weisbach)](https://elysiatools.com/en/tools/pipe-pressure-drop-darcy): Compute the Darcy-Weisbach major (friction) pressure drop in a straight pipe: ΔP = f·(L/D)·(ρ·v²/2) Pa and head loss h_f = f·(L/D)·v²/(2g) m. The user supplies the Darcy friction factor f (not the Fanning factor). Length in m/km/ft, diameter in m/cm/mm/inch, density in kg/m³/g/cm³/lb/ft³ — all normalised to SI internally. Returns ΔP in Pa, kPa and bar, and head loss in m and ft. Gravity defaults to 9.81 m/s² and may be overridden.
- [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

## 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.
