Home · Statistics · Inference & Tests · P-Hat Calculator
P-Hat Calculator
The sample proportion p̂ as a percentage: successes divided by trials, with the standard error of the proportion shown alongside.
What this calculator does
The sample proportion p̂ as a percentage: successes divided by trials, with the standard error of the proportion shown alongside. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
p̂ is the sample proportion, reported here as a percentage: x successes out of n trials.
The standard error uses the estimated proportion itself, √(p̂(1−p̂)/n), also in percentage points.
The normal approximation behind the standard error works best when both x and n − x are at least about 10.
Worked example
With the example inputs this page opens with (successes x 45, trials n 100), the result is 45.00 — sample proportion p̂. Change any figure and the result updates with the same formula.
Quick reference
| Successes x | Sample proportion p̂ |
|---|---|
| 22.5 | 22.50 |
| 36 | 36.00 |
| 45 | 45.00 |
| 56.25 | 56.25 |
| 67.5 | 67.50 |
| 90 | 90.00 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
What is the difference between p and p̂?
p is the true population proportion, usually unknown. p̂ (p-hat) is the proportion measured in your sample, x/n, and serves as the estimate of p.
Why is the standard error largest near p̂ = 50%?
The variance p̂(1−p̂) is maximised at p̂ = 0.5. A sample split down the middle carries the most uncertainty about the population proportion; near 0% or 100% the proportion is pinned down more tightly.
How does the P-Hat Calculator work?
The sample proportion p̂ as a percentage: successes divided by trials, with the standard error of the proportion shown alongside. Successes x · Trials n → Sample proportion p̂ (%). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the P-Hat Calculator need?
Successes x · Trials n → Sample proportion p̂ (%). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.