P-Hat Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the number of successes and the sample size to get the sample proportion p̂ and its standard error.
Result
Sample proportion p̂ = x ÷ n
p̂ as a percentage
- q̂ = 1 − p̂
- Standard error √(p̂q̂ ÷ n)
- Large-sample condition
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of successes (x): enter 0 or more.
- Sample size (n): enter 1 or more.
- Read the result: Sample proportion p̂ = x ÷ n; the panel also shows p̂ as a percentage, q̂ = 1 − p̂, Standard error √(p̂q̂ ÷ n) and Large-sample condition.
How this calculator works
p̂ (p-hat) = x ÷ n, the number of successes divided by the sample size; it estimates the population proportion p. q̂ = 1 − p̂ is the proportion of failures.
The standard error of p̂ is √(p̂(1 − p̂) ÷ n). Normal-approximation methods (z-intervals and z-tests for a proportion) are usually used only when n p̂ ≥ 10 and n(1 − p̂) ≥ 10; some textbooks accept 5.
The formula
| Symbol | Meaning |
|---|---|
| Number of successes | |
| Sample size | |
| Sample proportion p̂ = x ÷ n |
Worked example
| Number of successes (x) | 45 |
|---|---|
| Sample size (n) | 120 |
| p̂ as a percentage | 37.5% |
|---|---|
| q̂ = 1 − p̂ | 0.625 |
| Standard error √(p̂q̂ ÷ n) | 0.0442 |
| Large-sample condition | Met: n p̂ and n(1 − p̂) are both at least 10 |
Sample proportion p̂ = x ÷ n 0.375
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is p-hat if 45 of 120 people say yes?
p̂ = 45 ÷ 120 = 0.375 (37.5%), with a standard error of about 0.0442.
What is the difference between p and p-hat?
p is the true proportion in the whole population, usually unknown; p̂ is the proportion observed in your sample, used to estimate p.