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

T-Test Calculator

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

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

Welch's two-sample t-test

t = -1.8608, p = 0.079
Degrees of freedom
17.776
Critical values
-2.103 and 2.103
Difference of means
-1.58
Standard error
0.84909
95% interval
-3.365 to 0.2055
Cohen's d
-0.832 (large)

p = 0.079 ≥ α = 0.05, so fail to reject H0: μ1 = μ2. There is not enough evidence that the two population means differ. The sample means differ by -1.58 (95% interval from -3.365 to 0.2055). Cohen's d = -0.832, a large effect.

Student or Welch?

The variances differ by a factor of 1.25 and the group sizes are similar, so Student and Welch give nearly the same answer. Welch is still the safer default.

Methodtdfp-value
Welch-1.860817.7760.079
Student-1.8608180.079

Rejection region and t statistic

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

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

Step-by-step working

  1. 1Hypotheses
    H0: μ1=μ2H_0:\ \mu_1 = \mu_2H0​: μ1​=μ2​
    ↓
    H1: μ1≠μ2H_1:\ \mu_1 \neq \mu_2H1​: μ1​=μ2​

    two-tailed test at α = 0.05

  2. 2Group summaries
    xˉ1, s1, n1 and xˉ2, s2, n2\bar x_1,\ s_1,\ n_1\ \text{and}\ \bar x_2,\ s_2,\ n_2xˉ1​, s1​, n1​ and xˉ2​, s2​, n2​
    ↓
    0.75, 1.789, 10 and 2.33, 2.002, 100.75,\ 1.789,\ 10\ \text{and}\ 2.33,\ 2.002,\ 100.75, 1.789, 10 and 2.33, 2.002, 10
  3. 3Standard error
    SE=s12n1+s22n2SE = \sqrt{\dfrac{s_1^2}{n_1}+\dfrac{s_2^2}{n_2}}SE=n1​s12​​+n2​s22​​​
    ↓
    SE=3.200610+4.00910=0.84909SE = \sqrt{\dfrac{3.2006}{10}+\dfrac{4.009}{10}} = 0.84909SE=103.2006​+104.009​​=0.84909
  4. 4Welch-Satterthwaite df
    df=(s12/n1+s22/n2)2(s12/n1)2n1−1+(s22/n2)2n2−1df = \dfrac{(s_1^2/n_1 + s_2^2/n_2)^2}{\frac{(s_1^2/n_1)^2}{n_1-1}+\frac{(s_2^2/n_2)^2}{n_2-1}}df=n1​−1(s12​/n1​)2​+n2​−1(s22​/n2​)2​(s12​/n1​+s22​/n2​)2​
    ↓
    df=17.776df = 17.776df=17.776
  5. 5t statistic
    t=xˉ1−xˉ2SEt = \dfrac{\bar x_1 - \bar x_2}{SE}t=SExˉ1​−xˉ2​​
    ↓
    t=0.75−2.330.84909=−1.8608t = \dfrac{0.75 - 2.33}{0.84909} = -1.8608t=0.849090.75−2.33​=−1.8608
  6. 6p-value and critical value
    p and tc (df=17.78)p\ \text{and}\ t_c\ (df = 17.78)p and tc​ (df=17.78)
    ↓
    p=0.07939, tc=−2.103 and 2.103p = 0.07939,\ t_c = -2.103\ \text{and}\ 2.103p=0.07939, tc​=−2.103 and 2.103
  7. 7Confidence interval
    (xˉ1−xˉ2)±tα/2 SE(\bar x_1 - \bar x_2) \pm t_{\alpha/2}\,SE(xˉ1​−xˉ2​)±tα/2​SE
    ↓
    −1.58±2.103×0.84909=[−3.365, 0.2055]-1.58 \pm 2.103\times 0.84909 = [-3.365,\ 0.2055]−1.58±2.103×0.84909=[−3.365, 0.2055]
  8. 8Cohen's d
    d=xˉ1−xˉ2spd = \dfrac{\bar x_1 - \bar x_2}{s_p}d=sp​xˉ1​−xˉ2​​
    ↓
    d=−1.581.8986=−0.8322d = \dfrac{-1.58}{1.8986} = -0.8322d=1.8986−1.58​=−0.8322

    large effect

  9. 9Decision
    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

About T-Test Calculator

This t-test calculator is free, needs no sign-up and runs in your browser, so your data is never uploaded. It covers the three t-tests people need: a one-sample t-test against a hypothesised mean, a paired t-test for before and after measurements, and an independent two-sample t-test in both the Student (equal variances) and Welch (unequal variances) forms.

Enter raw data or just the mean, standard deviation and size of each group. The result shows the t statistic, the degrees of freedom, the p-value, the critical value, the standard error, a confidence interval and Cohen's d with a plain label for its size. A bell curve shades the rejection region and marks your t value, and a step-by-step panel writes every formula with your numbers filled in.

For two samples the page also compares Welch and Student side by side and gives a recommendation. Welch is the safer default because it stays valid when the group variances or sizes differ, and it gives almost the same answer as Student when they do not. Choose a two-tailed, left-tailed or right-tailed alternative and a significance level from 0.10 to 0.001.

How to use 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.

The formulas

Each test divides a difference of means by its standard error. The one-sample and paired tests use n minus 1 degrees of freedom. The Student test pools the two variances and uses n1 + n2 minus 2. The Welch test keeps the variances apart and estimates the degrees of freedom with the Welch-Satterthwaite formula.

one-sample   t = (x̄ − μ0) / (s / √n),             df = n − 1
paired       t = d̄ / (s_d / √n),                   df = n − 1
Student      t = (x̄1 − x̄2) / √(s_p² (1/n1 + 1/n2)),  df = n1 + n2 − 2
Welch        t = (x̄1 − x̄2) / √(s1²/n1 + s2²/n2)
Cohen's d    d = (x̄1 − x̄2) / s_p

Worked examples

  • Sleep data, drug 1 and drug 2 (10 patients each), Welch → gives t = -1.861, df = 17.78, p = 0.079, d = -0.832

    Student (1908) data as in R. Treated as two independent groups the difference is not significant at 0.05.

  • Same sleep data, paired t-test → gives t = -4.062, df = 9, p = 0.003

    The same patients took both drugs, so pairing removes the person-to-person variation and the difference becomes clear.

  • NIST car mileage: US 249 cars, mean 20.14458, SD 6.41470; Japanese 79 cars, mean 30.48101, SD 6.10771 (Student) → gives t = -12.6206, df = 326, critical values ±1.9673

    Matches the worked example in the NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.3.

Cohen's d, rough benchmarks

Cohen's own rules of thumb. Judge importance in the context of your field.
Cohen's d (size)LabelOverlap of the two groups
below 0.2negligiblemore than 92%
0.2 to 0.5smallabout 80% to 92%
0.5 to 0.8mediumabout 69% to 80%
0.8 and abovelargeunder 69%

Good to know

Welch or Student?

The Student test assumes both groups have the same variance. If that is false and the group sizes differ, its p-value can be too small or too large. The Welch test does not make that assumption and loses very little power when the variances are in fact equal, so most statisticians use it by default. Testing for equal variances first and then picking a test is not recommended, because the two-step procedure distorts the error rates.

Assumptions and limits

All t-tests assume independent observations and roughly normal data, or a large enough sample for the mean to be roughly normal. With small samples and heavy skew or outliers, a rank-based test such as Mann-Whitney is safer, and this calculator does not run one. The paired test assumes the pairs are independent of each other and that the differences are roughly normal.

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.

Which t-test should I use?

Use a one-sample t-test to compare one mean with a known value, a paired t-test for two measurements on the same subjects, and a two-sample t-test for two separate groups. For two separate groups choose Welch unless you have a strong reason to assume equal variances.

What is the difference between Student and Welch?

Student pools the two variances and assumes they are equal. Welch keeps them apart and adjusts the degrees of freedom. When the variances and group sizes are similar they agree closely, and when they differ Welch is the reliable one.

What is Cohen's d?

It is the difference between the means divided by the pooled standard deviation, so it is in standard deviation units. Around 0.2 is small, 0.5 medium and 0.8 large, by convention. For a paired or one-sample test the calculator divides by the standard deviation of the differences or of the sample.

What does the p-value tell me?

It is the probability of a t statistic at least this extreme if the null hypothesis were true. A value below your significance level, usually 0.05, means you reject the null hypothesis. It does not give the size of the effect, which is why the calculator also reports Cohen's d and an interval.

How many observations do I need?

The calculator needs at least 2 values in each group. For reliable results you want more, and the sample size calculator on this site can estimate how many you need to detect a given effect.

Can I test with only summary statistics?

Yes. Switch to summary statistics and type the mean, standard deviation and sample size of each group. For a paired test, type the mean, standard deviation and count of the differences.

Does it round the degrees of freedom for Welch?

No. It uses the fractional degrees of freedom from the Welch-Satterthwaite formula, as R and most statistics packages do. Some textbooks round down to a whole number, which gives a slightly larger p-value.

Popular T-Test Calculator pages

  • One-Sample T-Test CalculatorCompare the mean of one sample with a value you expect and see the t statistic, p-value and 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