Step by step
Before you start: Load the Penguins sample: Data › Sample data › Penguins. Getting started shows how.
Choose Two-Sample t-Test
Click Analyze in the menu bar; under Means choose Two-Sample t-Test.
Fill in the form
In What you measured, choose
body_mass_g. In The two groups, choosesex. Leave the options at their defaults unless you need otherwise.Run the analysis
Press Run analysis. The Result Card opens on the Results tab: what to know first, then the interpretation in words and the Key Results.
Find the chart
Scroll down the Results tab to the chart.
Read Learn More
Open Learn More for the idea in plain words, the assumptions and the formula. Code gives the same analysis as Python, R and MATLAB code (and SAS where the tab offers it), and Export sends the card to a report or slides: see Read a Result Card.
What you should see
A card titled Welch’s Two-Sample t-Test: Welch’s version is the default because it does not assume the two groups vary by the same amount. The interpretation gives each group’s mean and SD, t with its degrees of freedom, the p-value, the 95% CI for the mean difference and Cohen’s d; Key Results repeat them with the detectable effect and the decision.
Common problems
- The group column has more than two groups.
A two-sample t-test compares exactly two. For three or more groups use One-Way ANOVA.
- The two measurements belong to the same subjects.
Use Paired t-Test from the same Means group instead.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Is average salary different between male and female employees?
- Did patients' blood pressure change from before to after treatment?
Last reviewed November 16, 2026.
