Skip to content
ToolUlkaa Tool
All tools

Statistics

Statistics CalculatorRandom Number GeneratorStandard Deviation CalculatorZ-Score CalculatorProbability CalculatorPermutation and Combination CalculatorP-Value CalculatorT-Test CalculatorConfidence Interval CalculatorSample Size CalculatorChi-Square CalculatorCorrelation Coefficient CalculatorLinear Regression CalculatorANOVA CalculatorProbability Distribution Calculator

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Statistics

One-Sample T-Test Calculator

Compare the mean of one sample with a value you expect and see the t statistic, p-value and working.

Test
Data entry
10 values read. Separate with commas, spaces or new lines.
Alternative hypothesis
Significance level (α)

One-sample t-test

t = -0.085749, p = 0.934
Degrees of freedom
9
Critical values
-2.262 and 2.262
Sample mean
24.96
Standard error
0.46648
95% interval
23.9 to 26.02
Cohen's d
-0.0271 (negligible)

p = 0.934 ≥ α = 0.05, so fail to reject H0: μ = 25. There is not enough evidence that the population mean is different from 25. In plain terms, the population mean is not shown to differ from 25. The sample mean is 24.96, with an interval of 23.9 to 26.02. Cohen's d = -0.0271, a negligible effect.

Rejection region and t statistic

Rejection region and t statisticRejection region and t statistic. The two tails is shaded. The t is -0.08575.-4-3-2-101234t (df = 9)t = -0.08575

The shaded area is the rejection region (total area 0.05): values below -2.262 or above 2.262. The dashed line is your statistic.

Step-by-step working

  1. 1Hypotheses
    H0: μ=25H_0:\ \mu = 25H0​: μ=25
    ↓
    H1: μ≠25H_1:\ \mu \neq 25H1​: μ=25

    two-tailed test at α = 0.05

  2. 2Summary
    xˉ, s, n\bar x,\ s,\ nxˉ, s, n
    ↓
    24.96, 1.475, 1024.96,\ 1.475,\ 1024.96, 1.475, 10
  3. 3Standard error
    SE=snSE = \dfrac{s}{\sqrt{n}}SE=n​s​
    ↓
    SE=1.47510=0.46648SE = \dfrac{1.475}{\sqrt{10}} = 0.46648SE=10​1.475​=0.46648
  4. 4t statistic
    t=xˉ−25SEt = \dfrac{\bar x - 25}{SE}t=SExˉ−25​
    ↓
    t=24.96−250.46648=−0.085749t = \dfrac{24.96 - 25}{0.46648} = -0.085749t=0.4664824.96−25​=−0.085749
  5. 5p-value and critical value
    df=n−1=9df = n - 1 = 9df=n−1=9
    ↓
    p=0.9335, tc=−2.262 and 2.262p = 0.9335,\ t_c = -2.262\ \text{and}\ 2.262p=0.9335, tc​=−2.262 and 2.262
  6. 6Confidence interval
    xˉ±tα/2 SE\bar x \pm t_{\alpha/2}\,SExˉ±tα/2​SE
    ↓
    24.96±2.262×0.46648=[23.9, 26.02]24.96 \pm 2.262\times 0.46648 = [23.9,\ 26.02]24.96±2.262×0.46648=[23.9, 26.02]
  7. 7Cohen's d
    d=xˉ−25sd = \dfrac{\bar x - 25}{s}d=sxˉ−25​
    ↓
    d=−0.02712d = -0.02712d=−0.02712

    negligible effect

  8. 8Decision
    p≥αp \geq \alphap≥α
    ↓
    fail to reject H0\text{fail to reject } H_0fail to reject H0​
  1. Tools
  2. Statistics
  3. T-Test Calculator
  4. One-Sample T-Test Calculator

About One-Sample T-Test Calculator

This one-sample t-test calculator checks whether the mean of your sample differs from a hypothesised population mean, using the t distribution with n minus 1 degrees of freedom. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

Paste your data or type the sample mean, standard deviation and size, then type the value to compare with (μ0). The page returns the t statistic, the p-value for a two-tailed, right-tailed or left-tailed test, the confidence interval for the mean and Cohen’s d.

Typical questions: is the average fill of a bottle different from the label, is a class average different from a national average, did a process hit its target mean. The curve shows where your t statistic lands against the rejection region.

How to use One-Sample T-Test Calculator

  1. 1Choose the test: one-sample, paired or two-sample.
  2. 2Choose raw data or summary statistics. For raw data, paste each list; for paired data, keep the two lists in the same order and the same length.
  3. 3For a one-sample test type the hypothesised mean. For two samples pick Welch or Student.
  4. 4Pick the alternative hypothesis (two-tailed, right or left) and the significance level.
  5. 5Read the t statistic, p-value, interval and Cohen's d, then open the working to see every formula.

Features

  • One-sample, paired and independent two-sample t-tests.
  • Welch (unequal variances) and Student (pooled) two-sample tests, compared side by side with a recommendation.
  • Raw data or summary statistics (mean, standard deviation, n).
  • Cohen's d with a size label, plus the standard error and a confidence interval.
  • Left, right or two-tailed tests, with the critical value for your significance level.
  • A bell curve with the rejection region shaded and the t statistic marked.
  • Step-by-step KaTeX working and a plain-English conclusion.

One-sample t-test

The statistic is the distance from the hypothesised mean in standard errors.

t = (x̄ − μ0) / (s / √n),   df = n − 1
d = (x̄ − μ0) / s

Worked examples

  • Ten measurements 24.1, 26.3, 22.8, 25.0, 27.2, 23.9, 25.6, 24.4, 26.8, 23.5 against μ0 = 25 → gives mean 24.96, t = -0.08575, df = 9, p = 0.934

  • NIST ZARR13: n = 195, mean 9.26146, SD 0.022789, μ0 = 5 → gives t = 2611.262, df = 194, critical values ±1.9723

    The NIST/SEMATECH e-Handbook, section 1.3.5.2, reports T = 2611.284.

Privacy: how it works

  • The test is calculated by code in your own browser tab. Your data is not sent to Ulkaa or to any other server.
  • There is no account and nothing is stored. Closing the tab clears what you entered.

Tips

  • Use the paired test when the same people or items are measured twice. Using the two-sample test on paired data throws away the pairing and usually loses power.
  • Decide one-tailed or two-tailed before you see the data. A two-tailed test is the safe default.
  • Report the effect size and the interval with the p-value. A tiny p-value with a negligible Cohen's d is statistically significant but may not matter in practice.
  • If your lists have different lengths, that is fine for the two-sample test, but the paired test needs equal lengths.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your data are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your data are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

When do I use a one-sample t-test?

When you have one group of measurements and want to know whether its population mean differs from a specific number, and you do not know the population standard deviation.

What if I know the population standard deviation?

Then a z-test is appropriate. For large samples the two give nearly the same answer. The confidence interval calculator on this site has a known-sigma option.

More T-Test Calculator pages

  • T-Test CalculatorRun a one-sample, paired or two-sample t-test from raw data or summary statistics, with Cohen's d, the p-value and the working.
  • Paired T-Test CalculatorPaste two matched lists and get the paired t statistic, p-value and working.
  • Two-Sample T-Test CalculatorCompare the means of two independent groups with the classic pooled Student t-test.
  • Welch's T-Test CalculatorCompare two means without assuming equal variances, with Welch-Satterthwaite degrees of freedom.
  • Cohen's d CalculatorGet Cohen's d for two groups from summary statistics, with the matching t-test and a size label.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account