How to Find P Value: Easy Steps, Formula & Examples

Learn how to find p value step by step with formulas, examples, and charts. Calculate p values for Z, T, and Chi square tests easily.

How to Find P Value Easy Steps, Formula & Examples

Trying to figure out how to find p value can feel confusing at first.

You calculate a test statistic. You open a table. Then suddenly you’re staring at decimals like 0.043 or 0.012 and wondering what they actually mean.

Here’s the simple truth.

A p value tells you how likely your results are if the null hypothesis is true. The smaller the p value, the stronger the evidence against the null hypothesis.

A p value is the probability of getting a result at least as extreme as yours if the null hypothesis were true. You’ll see clear formulas. Real worked examples. And simple explanations without unnecessary theory.

By the end, you won’t just know how to calculate p value.
You’ll understand what it actually means and how to interpret it correctly.

What Is a P Value?

A p value is the probability of getting results at least as extreme as yours, assuming the null hypothesis is true.

That’s the technical definition.

Here’s the simple version.

The p value tells you how surprising your data is if nothing unusual is happening.

If the p value is small, your result is unlikely under the null hypothesis.
If the p value is large, your result is consistent with the null hypothesis.

In Plain English

Imagine you flip a coin 50 times and get 45 heads.

That feels unusual, right?

The p value measures how unusual that result would be if the coin were actually fair.

  • Small p value → Very unlikely under fairness
  • Large p value → Totally believable under fairness

What Does a Small P Value Mean?

A small p value, like 0.03, means:

There is only a 3 percent chance of seeing results this extreme if the null hypothesis is true.

That’s why researchers often compare the p value to a significance level like 0.05.

If:

  • p ≤ 0.05 → Reject the null hypothesis
  • p > 0.05 → Do not reject the null hypothesis

Important Clarification

A p value does not mean:

  • The probability that the null hypothesis is true
  • The probability your results happened by accident
  • The size or importance of an effect

It only measures evidence against the null hypothesis.

Where P Values Are Used

You calculate p values in:

  • Z tests
  • T tests
  • Chi-square tests
  • ANOVA
  • Regression analysis

Why the P Value Matters in Statistics

The p value is the core decision tool in hypothesis testing.

Without it, you are just guessing.

It gives you a clear, mathematical way to decide whether your results are statistically significant.

It Helps You Make Data Driven Decisions

In statistics, you usually start with two hypotheses:

  • Null hypothesis
  • Alternative hypothesis

The p value helps you decide whether there is enough evidence to reject the null hypothesis.

If the p value is small, your evidence is strong.
If the p value is large, your evidence is weak.

Simple.

It Controls Type I Error

When you test a hypothesis, there is always a risk of making a mistake.

A Type I error happens when you reject a true null hypothesis.

That is where the significance level, often 0.05, comes in.

You compare your p value to alpha:

  • If p ≤ alpha → Reject the null hypothesis
  • If p > alpha → Do not reject the null hypothesis

This keeps your false positive rate under control.

It Is Used Everywhere

You will need to calculate a p value in:

  • Medical research
  • Psychology studies
  • Business analytics
  • A/B testing
  • Economics
  • Quality control

Whether you are running a z test, t test, or chi-square test, the final decision usually depends on the p value.

Statistical Significance vs Practical Significance

Here is something many beginners miss.

A small p value does not mean the effect is large.

It only means the result is statistically significant.

You can have:

  • A tiny effect that is statistically significant
  • A large effect that is not statistically significant

So read the effect size alongside the p value before you draw a conclusion.

P Value Formula Explained

P Value Formula Explained

There is no single universal “p value formula“.

Why?

Because the formula depends on the test you are using.

The p value is calculated from a test statistic and its probability distribution. That could be:

  • Z distribution
  • T distribution
  • Chi-square distribution
  • F distribution

General P Value Formula Concept

At its core, the p value is:

P value = Probability of observing a test statistic as extreme or more extreme than the one calculated, assuming the null hypothesis is true

In probability notation:

For a right-tailed test:

pvalue=P(TestStatistic≥observedvalue)p value = P(Test Statistic ≥ observed value)

For a left-tailed test:

pvalue=P(TestStatistic≤observedvalue)p value = P(Test Statistic ≤ observed value)

For a two-tailed test:

pvalue=2×tailprobabilityp value = 2 × tail probability

That’s the foundation.

Now let’s apply it to specific tests.

P Value from Z Score (Z Test)

You use a z test when:

  • Population standard deviation is known
  • Sample size is large

Step 1: Calculate Z Statistic

Z=(X‾−μ)/(σ/√n)Z = (X̄ − μ) / (σ / √n)

Where:

  • X̄ = sample mean
  • μ = population mean
  • σ = population standard deviation
  • n = sample size

Step 2: Find Probability from Z Distribution

Once you calculate the z score, you:

  • Look it up in the Z table
  • Or use a p-value calculator
  • Or use statistical software

For a two-tailed test:

pvalue=2×P(Z≥|z|)p value = 2 × P(Z ≥ |z|)

P Value from T Score (T Test)

You use a t test when:

  • Population standard deviation is unknown
  • Sample size is small

Step 1: Calculate T Statistic

t=(X‾−μ)/(s/√n)t = (X̄ − μ) / (s / √n)

Where:

  • s = sample standard deviation

Step 2: Use Degrees of Freedom

df=n−1df = n − 1

Then:

p value = Probability from t distribution with df degrees of freedom

For a two-tailed test:

pvalue=2×P(T≥|t|)p value = 2 × P(T ≥ |t|)

P Value from Chi-Square (χ² Test)

Chi-square tests are used for:

  • Categorical data
  • Goodness-of-fit
  • Independence tests

Step 1: Calculate Chi-Square Statistic

χ2=Σ[(Observed−Expected)2/Expected]χ² = Σ [(Observed − Expected)² / Expected]

Step 2: Use Degrees of Freedom

df depends on the test type.

Then:

pvalue=P(Chi−square≥observedvalue)p value = P(Chi-square ≥ observed value)

Chi-square tests are usually right-tailed.

P Value from F Statistic (ANOVA)

For ANOVA:

F=Variancebetweengroups/VariancewithingroupsF = Variance between groups / Variance within groups

Then:

pvalue=P(F≥observedvalue)p value = P(F ≥ observed value)

The F distribution is always right-tailed.

Quick Summary

To calculate p value:

  1. Compute the test statistic
  2. Identify the correct distribution
  3. Determine degrees of freedom if needed
  4. Find probability in the tail

That’s it.

How to Find P Value Step by Step (Manual Method)

How to Find P Value Step-by-Step (Manual Method)

If you want to understand statistics properly, you should know how to find p value manually.

Yes, calculators are faster.

But manual steps build real understanding.

Here’s the exact process.

Step 1: State the Hypotheses

Start with:

  • Null hypothesis (H₀) → No effect or no difference
  • Alternative hypothesis (H₁) → There is an effect or difference

Example:

H₀: μ = 50
H₁: μ ≠ 50

This tells you whether the test is:

  • Left-tailed
  • Right-tailed
  • Two-tailed

This matters for calculating p value correctly.

Step 2: Choose the Correct Test

Next, decide which statistical test to use:

  • Z test → Population standard deviation known
  • T test → Population standard deviation unknown
  • Chi-square test → Categorical data
  • F test → Comparing multiple groups

Using the wrong test gives the wrong p value.

Step 3: Calculate the Test Statistic

Now plug values into the correct formula:

For Z test:
Z = (X̄ − μ) / (σ / √n)

For T test:
t = (X̄ − μ) / (s / √n)

For Chi-square:
χ² = Σ [(O − E)² / E]

This gives you your test statistic.

Example result:

Z=2.10Z = 2.10

Step 4: Determine Degrees of Freedom (If Required)

For:

  • T test → df = n − 1
  • Chi-square → depends on rows and columns
  • F test → two degrees of freedom

Z tests do not require degrees of freedom.

Step 5: Use the Appropriate Statistical Table

Now find the probability.

You’ll use:

  • Z table
  • T table
  • Chi-square table
  • F table

Look up your test statistic in the table.

For example:

If Z = 2.10
The Z table might show 0.9821

That means:

P(Z≤2.10)=0.9821P(Z ≤ 2.10) = 0.9821

For a right-tailed test:

pvalue=1−0.9821=0.0179p value = 1 − 0.9821 = 0.0179

For a two-tailed test:

pvalue=2×0.0179=0.0358p value = 2 × 0.0179 = 0.0358

That is your final p value.

Step 6: Compare With Significance Level

Most common alpha values:

  • 0.05
  • 0.01
  • 0.10

Decision rule:

  • If p ≤ alpha → Reject H₀
  • If p > alpha → Do not reject H₀

Example:

p = 0.0358
alpha = 0.05

Since 0.0358 < 0.05 → Reject the null hypothesis.

How to Calculate P Value Using a P Value Calculator

Manual tables work.

But they’re slow.
And small lookup mistakes can change your answer.

That’s why most students and researchers now use a p value calculator.

It’s faster.
More accurate.
And handles z, t, chi-square, and F tests in seconds.

When Should You Use a P-Value Calculator?

Use a calculator when:

  • You already have a test statistic
  • You know the degrees of freedom if required
  • You want fast and precise results
  • You’re working on exams, research, or assignments

It eliminates table rounding errors.

Example: P Value from Z Score Using Calculator

Suppose:

Z = 2.10
Two-tailed test

Steps:

  1. Select Z test
  2. Enter 2.10
  3. Choose two-tailed
  4. Click calculate

Result:

p ≈ 0.0358

p value calculator

Same answer as manual method.
Much faster.

Example: P Value from T Statistic

Suppose:

t = 2.45
df = 18
Two-tailed test

Enter values into the calculator.

You get the exact p value without checking a t table.

Why Calculators Are More Accurate

Statistical tables round values.

Calculators compute using full distribution functions.

That means:

  • More decimal precision
  • No interpolation errors
  • Cleaner results

P Value from Z Score (Complete Example)

P Value from Z Score (Complete Example)

Let’s walk through a full example of how to find p value from a z score.

No shortcuts.
Just clear steps.

Problem

A company claims the average delivery time is 30 minutes.

A random sample shows:

  • Sample mean = 32 minutes
  • Population standard deviation = 5 minutes
  • Sample size = 40

Test at the 0.05 significance level whether the true mean is different from 30 minutes.

Step 1: State the Hypotheses

H₀: μ = 30
H₁: μ ≠ 30

This is a two-tailed test because we are checking for any difference.

Step 2: Calculate the Z Statistic

Formula:

Z=(X‾−μ)/(σ/√n)Z = (X̄ − μ) / (σ / √n)

Substitute values:

Z = (32 − 30) / (5 / √40)

First calculate denominator:

√40 ≈ 6.32
5 / 6.32 ≈ 0.79

Now:

Z = 2 / 0.79
Z ≈ 2.53

Step 3: Find the Tail Probability

Now we find the probability of getting a z value of 2.53 or more.

From a Z table:

P(Z ≤ 2.53) ≈ 0.9943

Right-tail probability:

1 − 0.9943 = 0.0057

Because this is a two-tailed test:

p value = 2 × 0.0057
p ≈ 0.0114

Step 4: Compare With Alpha

Significance level:

α = 0.05

Since:

0.0114 < 0.05

We reject the null hypothesis.

Final Interpretation

The p value is approximately 0.0114.

This means there is about a 1.14 percent chance of observing a sample mean this extreme if the true average delivery time were actually 30 minutes.

That is strong evidence against the null hypothesis.

P Value from T Score (Complete Example)

P Value from T Score (Complete Example)

Now let’s see how to calculate a p value from a t score, which you use when the population standard deviation is unknown or the sample size is small.

We’ll go step by step.

Problem

A teacher claims that her students score an average of 75 on a math test.

A random sample of 12 students shows:

  • Sample mean = 78
  • Sample standard deviation = 4
  • Sample size = 12

Test at the 0.05 significance level whether the true mean differs from 75.

Step 1: State the Hypotheses

H₀: μ = 75
H₁: μ ≠ 75

This is a two-tailed t-test.

Step 2: Calculate the T Statistic

Formula:

t=(X‾−μ)/(s/√n)t = (X̄ − μ) / (s / √n)

Substitute values:

t = (78 − 75) / (4 / √12)

First, calculate √12:

√12 ≈ 3.464

Then, s / √n:

4 / 3.464 ≈ 1.154

Now, t:

t = 3 / 1.154
t ≈ 2.60

Step 3: Determine Degrees of Freedom

Degrees of freedom (df) = n − 1
df = 12 − 1 = 11

Step 4: Find the P Value from T Table

Check a t-distribution table or calculator for:

t = 2.60, df = 11, two-tailed

From table or calculator:

p value ≈ 0.024

Step 5: Compare With Significance Level

α = 0.05

Since 0.024 < 0.05 → Reject H₀

Step 6: Interpretation

There is strong evidence that the students’ mean score is different from 75.

The p value of 0.024 means there is a 2.4% chance of observing a sample mean this extreme if the true mean were 75.

P Value from Chi-Square (Complete Example)

P Value from Chi-Square (Complete Example)

Now let’s calculate a p value from a chi-square (χ²) statistic, which is used for categorical data, like testing independence or goodness-of-fit.

We’ll go step by step.

Problem

A researcher wants to see if a six-sided die is fair.

She rolls the die 60 times and observes the following counts:

FaceObserved (O)
18
210
39
412
511
610

The expected frequency for each face (if fair) is:

E = 60 ÷ 6 = 10

Test at α = 0.05 whether the die is fair.

Step 1: State the Hypotheses

H₀: The die is fair (observed frequencies match expected)
H₁: The die is not fair (observed frequencies differ from expected)

This is a chi-square goodness-of-fit test.

Step 2: Calculate the Chi-Square Statistic

Formula:

χ2=Σ[(O−E)2/E]χ² = Σ [(O − E)² / E]

Compute for each face:

FaceObserved (O)Expected (E)(O − E)²(O − E)² / E
181040.4
2101000
391010.1
4121040.4
5111010.1
6101000
Total–––1.0

Sum all values:

χ² = 0.4 + 0 + 0.1 + 0.4 + 0.1 + 0 = 1.0

Step 3: Determine Degrees of Freedom

df = Number of categories − 1
df = 6 − 1 = 5

Step 4: Find the P Value

Use a chi-square table or calculator:

  • χ² = 1.0
  • df = 5

From table:

p value ≈ 0.962

Step 5: Compare With Significance Level

α = 0.05

Since 0.962 > 0.05 → Do not reject H₀

Step 6: Interpretation

The p value of 0.962 is very large, which means there is no evidence to suggest the die is unfair.

The observed frequencies are consistent with a fair die.

P Value Chart (Critical Value Table Explained)

A p value chart (or critical value table) is a quick way to find p values from standard test statistics without doing all the calculations manually.

It is useful for:

  • Z tests
  • T tests
  • Chi-square tests

Z Table (Standard Normal Distribution)

A Z table shows the area under the standard normal curve for a given z score.

Z ScoreArea (P(Z ≤ z))Right-Tail P(Z ≥ z)Two-Tail P Value
1.640.94950.05050.1010
1.960.97500.02500.0500
2.330.99010.00990.0198
2.580.99500.00500.0100

How to read:

  • Right-tail: 1 − area
  • Two-tail: 2 × right-tail

T Table (Student’s t Distribution)

A t table lists critical t values for different degrees of freedom (df) and significance levels (α).

dfα = 0.10α = 0.05α = 0.01
101.3722.2283.169
151.3412.1312.947
201.3252.0862.845
251.3162.0602.787

How to use:

  • Compare calculated t statistic with critical value
  • If |t| ≥ critical → reject H₀
  • If |t| < critical → do not reject H₀

Chi-Square Table

A chi square table shows critical values for different degrees of freedom (df) and significance levels.

dfα = 0.10α = 0.05α = 0.01
12.713.846.63
24.615.999.21
36.257.8111.34
47.789.4913.28

How to use:

  • Compare calculated χ² statistic with critical value for your df
  • If χ² ≥ critical → reject H₀
  • If χ² < critical → do not reject H₀

Why P Value Charts Are Useful

  • Quick reference for exam or manual calculations
  • Helps visualize significance levels (0.10, 0.05, 0.01)
  • Reduces calculation errors
  • Works even without a calculator

One-Tailed vs Two-Tailed P Value

When calculating p values, it’s crucial to know whether your test is one-tailed or two-tailed. This changes how you interpret your test statistic and compute the p value.

What Is a One-Tailed P Value?

A one-tailed test checks for an effect in only one direction.

  • Right-tailed: Tests if the value is greater than the null hypothesis
  • Left-tailed: Tests if the value is less than the null hypothesis

Example:

H₀: μ = 50
H₁: μ > 50 (right-tailed)

If the test statistic is Z = 2.10:

  • Find P(Z ≥ 2.10) = 0.0179
  • That is the one-tailed p value

What Is a Two-Tailed P Value?

A two-tailed test checks for an effect in both directions.

  • Tests if the value is different from the null hypothesis
  • Often used when the direction of the effect is unknown

Example:

H₀: μ = 50
H₁: μ ≠ 50

If Z = 2.10:

  • Find P(Z ≥ 2.10) = 0.0179
  • Multiply by 2 → p value = 0.0358

Quick Comparison

Test TypeTail DirectionP Value Calculation
One-tailedSingle directionP(TS ≥ observed) or P(TS ≤ observed)
Two-tailedBoth directions2 × P(TS ≥

Why It Matters

  • Using the wrong tail changes your p value
  • Two-tailed tests are more conservative (larger p values)
  • One-tailed tests can give smaller p values if your prediction matches the direction

Common Mistakes When Calculating P Value

Common Mistakes When Calculating P Value

Even experienced researchers sometimes misinterpret or miscalculate p values. Avoid these common pitfalls to ensure your results are accurate.

1. Confusing P Value with Probability That H₀ Is True

  • A p value does not tell you the probability that the null hypothesis is true.
  • It only tells you the probability of observing data as extreme as yours assuming H₀ is true.

Wrong interpretation: “p = 0.03 → 3% chance H₀ is true”
Correct interpretation: “p = 0.03 → 3% chance of observing data this extreme if H₀ is true”

2. Using the Wrong Statistical Test

  • Using a Z test when the population standard deviation is unknown
  • Using a t test with very large samples when σ is known
  • Using chi-square for continuous data

The wrong test leads to incorrect p values.

3. Ignoring Tail Direction

  • Forgetting to adjust for one-tailed or two-tailed tests
  • One-tailed vs two-tailed affects p value significantly

4. Forgetting Degrees of Freedom

  • For t, chi-square, and F tests, degrees of freedom matter
  • Ignoring df leads to inaccurate p values

5. Overemphasizing P Value Alone

  • A very small p value doesn’t always mean a large or important effect
  • Always consider effect size and practical significance

6. Rounding Errors from Tables

  • Using Z, t, or chi-square tables can introduce rounding errors
  • Calculators or software reduce these errors

7. Multiple Testing Without Correction

  • Running many tests without adjusting significance levels inflates false positives
  • Consider methods like Bonferroni correction

Tip: Always check your formulas, test type, tail direction, and degrees of freedom. Combine p value with effect size for accurate interpretation.

Frequently Asked Questions (FAQs)

How to find p value?

To find a p value, first calculate the test statistic (Z, T, or χ²). Then use a statistical table or p value calculator to determine the probability of observing a value as extreme as yours. Compare the p value to your significance level (α) to decide whether to reject the null hypothesis.

How to find p value in Excel?

Excel makes it easy:
Z test: Use =NORM.S.DIST(z, TRUE) for left-tail p value. Multiply by 2 for two-tailed.
T test: Use =T.DIST(t, df, TRUE) for one-tailed or =T.DIST.2T(t, df) for two-tailed.
Chi-square: Use =CHISQ.DIST(x, df, TRUE) for cumulative probability or =CHISQ.DIST.RT(x, df) for right-tail p value.

How to find p value from t?

Calculate t statistic: t = (X̄ − μ) / (s / √n)
Determine degrees of freedom (df = n − 1)
Look up t in a t table or use a calculator/Excel to get the p value.
Adjust for one-tailed or two-tailed test as needed.

How to find p value from z score?

Calculate Z = (X̄ − μ) / (σ / √n)
Use a Z table or NORM.S.DIST(z, TRUE) in Excel
For a two-tailed test, multiply the tail probability by 2

How to find p value from chi-square?

Calculate χ² = Σ[(O − E)² / E]
Determine degrees of freedom (df = number of categories − 1)
Use a chi-square table or Excel function CHISQ.DIST.RT(x, df)
Compare p value with α to accept or reject the null hypothesis

  • Muhammad Abdullah Arshad

    MPhil Statistics Scholar

    M. Abdullah Arshad is an MPhil Statistics scholar and Google-certified data analyst specializing in statistical analysis, data mining, and time series modeling.

  • Parker Rowland

    Former Math Teacher

    Parker Rowland is a Former math teacher, author, and ed tech enthusiast focused on clear math explanations, practical problem solving & effective learning.