For optimal use, please visit DATAtab on your desktop PC!

Metric Variables
Ordinal Variables
Nominal Variables

How-to

t-Test Calculator

Medical example data Biostatistics example data

To calculate a t-test just copy your data into the table above and select your variables for which you want to calculate the t-test:

t-Test calculator

DATAtab will automatically use the appropriate t-test and interpret your results. Afterwards, you will receive the results of the t-test in a clear and concise manner.

t-Test calculator

Calculate t-Test - Step by Step

If you want to calculate a t-test with your own data online, empty the upper table (click on Empty Table), copy your own data into it and make sure that the variable name is in the first row. Afterwards the variables are displayed below the table. Now click on the variables you want to evaluate. After selecting your variables, the t-test calculator will suggest which t-test you should use. You can choose from the following options:

  • Simple t-Test
  • t-Test for paired samples
  • t-Test for independent Samples

Additionally, you can choose to calculate either a two-tailed or a one-tailed hypothesis test. If the assumptions for a t-test are not met, you can use a non-parametric alternative, such as calculating a Mann-Whitney U-test, to perform the analysis.

calculate t-Test online

In the results section of the online t-test calculator you will find the mean and standard deviation of the samples and of course the calculated t-value and p-value. Which t-test you have to use is determined by the type of your sample or samples and how they are related to each other.

Simple t-Test Calculator

You want to test whether the mean of a sample is equal to that of the population? Then select a metric variable and specify the test value.

Independent t-Test Calculator

You want to compare the means of two independent groups? Then select two metric variables or one metric variable and one nominal variable with two values.

Paired t-Test Calculator

You want to compare two groups where the measured values belong together in pairs? Then select two metric variables.

p-value Calculator

Of course you also get the p-value calculated and displayed in a table. You can specify the significance level right at the beginning of the calculation. If you want to calculate a one-sided t-test, you can either specify this as well or you simply divide your p-value by two at the end. So DATAtab is like a SPSS online calculator.

More information about the theory behind the t-test and detailed examples can be found here:

t-Value Calculator

In order to calculate the p-value, the t-value must first be calculated. The p-value is then calculated from the t-value and the degrees of freedom.

Cite DATAtab: DATAtab Team (2025). DATAtab: Online Statistics Calculator. DATAtab e.U. Graz, Austria. URL https://datatab.net

Contact & Support FAQ & About Us Privacy Policy Statistics Software Minitab alternative