Skip to content
FiftyCalc Free calculators for all 50 states

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 figures

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.

P-Hat Calculator

Number of successes (x): enter 0 or more. Prefilled example: 45.

Sample size (n): enter 1 or more. Prefilled example: 120.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number of successes (x): enter 0 or more.
  2. Sample size (n): enter 1 or more.
  3. 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

  1. P=xn
Symbols used in the formula
SymbolMeaning
xNumber of successes
nSample size
PSample proportion p̂ = x ÷ n

Worked example

Number of successes (x)45
Sample size (n)120
p̂ as a percentage37.5%
q̂ = 1 − p̂0.625
Standard error √(p̂q̂ ÷ n)0.0442
Large-sample conditionMet: n p̂ and n(1 − p̂) are both at least 10
  1. P=45120=0.375

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.

Questions answered

Related calculators