Hypothesis Test Calculator

Hypothesis Test Calculator (Z-Test / t-Test)

Calculate test statistic Z = (x̄ - μ₀) / (s / √n), two-tailed p-value, and significance decision.

Hypothesis Test Results
Test Statistic (Z)
1.6
p-value (Two-Tailed)
0.1096
Decision
Fail to Reject Null Hypothesis (H₀)

At a Glance

Category
Statistics
Best For
Students testing whether a sample mean differs from a claimed value
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Standardizes the difference between the sample mean and the hypothesized mean and converts it to a p-value.

Who Should Use It

Statistics students, quality analysts and researchers.

When to Use It

Testing a claim about a mean with a known or well-estimated standard deviation.

Why It Is Useful

It tells you whether the observed difference is larger than chance would explain.

Key Features & Capabilities

z statistic

The standardized difference.

Two-tailed p-value

The probability of a result at least this extreme.

Decision at 0.05

Reject or fail to reject H₀.

How to Use This Tool

1

Enter the sample mean and hypothesized mean

Type what you observed and the value being tested. Tip: Use the same units.

2

Enter the standard deviation and n

Type the standard deviation and sample size. Tip: Both must be positive.

3

Read the z statistic

Larger absolute values mean stronger evidence. Tip: The sign shows the direction.

4

Read the decision

A p-value below 0.05 rejects the null hypothesis. Tip: Consider practical significance too.

Worked Real-World Example

A test of 104 against 100

A sample of 36 has a mean of 104 and a standard deviation of 15. Test H₀: μ = 100.

Sample Inputs
Sample mean104
Hypothesized mean100
Standard deviation15
Sample size36
z statistic1.6 (p = 0.1096; fail to reject H₀)
Calculation Breakdown
Standard error: 15 ÷ √36 = 2.5
z statistic: (104 − 100) ÷ 2.5 = 1.6
Two-tailed p-value: 2 × (1 − Φ(1.6)) = 0.1096
Decision: 0.1096 is above 0.05 = Fail to reject H₀
A difference of 4 is 1.6 standard errors from 100, which is not unusual enough to rule out chance at the 5% level.

How It Works (Math & Calculation Logic)

Standard error = s ÷ √n. z = (sample mean − hypothesized mean) ÷ standard error. The two-tailed p-value = 2 × (1 − Φ(|z|)) using the Abramowitz and Stegun normal approximation. If p < 0.05, reject H₀.

Formula / Algorithmz = (x̄ − μ₀) ÷ (s ÷ √n)
Variable & Logic Definitions
x̄Sample mean - Observed mean
μ₀Hypothesized mean - Value under H₀
sStandard deviation - Of the sample
nSample size - Observations (count)

How to Interpret Your Results

Typical Benchmarks

|z| above 1.96 corresponds to p below 0.05.

Evaluating Your Output

Failing to reject is not proof that H₀ is true.

Recommended Next Action

Pre-define alpha before looking at the data.

Frequently Asked Questions

What is a hypothesis test?
A procedure to decide whether data are consistent with a claim about a population.
What is the null hypothesis?
The default claim, here that the mean equals the hypothesized value.
What is a p-value?
The probability of a result at least as extreme if the null hypothesis were true.
What does fail to reject mean?
The data do not provide enough evidence against H₀.
Should I use a t-test instead?
For small samples with an estimated standard deviation, yes.

Complementary QuickForma Utilities

Mathematics & Statistics

Z-Score Calculator

Calculate standard score Z = (X - mu) / sigma and percentile rank under standard normal curve.

Open Tool
Mathematics & Statistics

Confidence Interval Calculator

Calculate margin of error E = Z * (sigma / sqrt(n)) and lower/upper bounds for confidence intervals.

Open Tool
Science & Engineering

Molar Mass & Composition Calculator

Parse chemical formulas (e.g. H2SO4, Ca(NO3)2) to compute total molecular weight and element mass %.

Open Tool
Science & Engineering

Moles & Molarity Calculator

Calculate moles n = m / M and molar concentration M = n / V in mol/L.

Open Tool
Mathematics & Statistics

Prime Factorization Calculator

Breaks a whole number into its prime factors in exponent form and lists all of its divisors.

Open Tool
Mathematics & Statistics

Simple Linear Regression & R² Line of Best Fit

Calculates regression line equation ŷ = β₀ + β₁ x, correlation r, and coefficient of determination R².

Open Tool
Mathematics & Statistics

Sample & Population Standard Deviation Solver

Solves sample (s) and population (σ) standard deviation with variance steps.

Open Tool
Mathematics & Statistics

Margin of Error & Survey Sample Size Solver

Calculates minimum required survey sample size based on confidence level (95%, 99%) and margin of error.

Open Tool
Mathematics & Statistics

Altman Z-Score Business Bankruptcy Predictor

Uses 5 financial ratios to predict public and private business insolvency risk.

Open Tool
Mathematics & Statistics

Raw Quiz / Exam Test Score Percentage Solver

Converts raw exam points (e.g. 47 out of 58) into percentage, letter grade, and grade points.

Open Tool
Mathematics & Statistics

Paired & Unpaired Two-Sample Student's t-Test

Calculates 1-sample, 2-sample independent, and paired t-test statistics and p-values.

Open Tool
Mathematics & Statistics

p-Value Calculator from Z, t, F & Chi-Square Statistics

Converts test statistics (Z, t, F, chi²) into one-tailed and two-tailed p-values.

Open Tool