Sample Size Margin of Error Calculator
Computes minimum sample size for a proportion given desired margin of error and confidence level z score using standard formula.
—
Sample size from margin of error
When you're estimating a proportion in an infinite population, the sample size you need comes from n = z² · p · (1−p) / E². Here z is the critical value of the confidence interval (1.96 for 95%, 2.576 for 99%), p is the expected proportion, and E is the margin of error you're willing to accept. When you have no idea what the proportion is, set p to 0.5, which gives the most conservative number. Say you want 95% confidence with E = 3% and p = 0.5; that works out to n ≈ 1,067. The 2,000-respondent polls Datafolha usually runs land at a margin of around ±2.2 percentage points.
Applications
Electoral polls (Datafolha, IBOPE/Ipec, Quaest). Household and labor surveys such as the IBGE PNAD. Market research, customer satisfaction tracking with NPS, public health surveillance, and figuring out how many users an A/B test really needs.
FAQ
Why use p = 0.5? The product p · (1−p) peaks at 0.5, so that value gives the largest n. When you don't know the real proportion, that's the safe upper bound to plan around.
Does the population size matter? Only when the population is finite. Once n climbs above roughly 5% of N, apply the finite population correction (FPC).
95% or 99% confidence? More confidence costs you a bigger sample. Move from 95% to 99% and n grows by roughly 70%.
Related Tools
Finite Population Sample Size Calculator
Computes sample size for a finite population N applying finite population correction with proportion p and confidence z score.
Video File Size from Bitrate Estimator
Bitrate in Mbps times duration in seconds divided by 8 gives the size in MB: 30 minutes of 1080p H.264 at 8 Mbps lands near 1800 MB, or 1.8 GB.
Thickness with Corrosion Allowance
Calculate the total thickness to specify for a pressure-vessel component including the corrosion allowance, t_total = t_calculated + CA, from the minimum pressure-calculated thickness t_calculated (mm) and the corrosion allowance CA (mm). The thickness from the ASME formulas is the MINIMUM needed to resist pressure — but the vessel will operate for DECADES, and corrosion (and erosion) will consume wall material over time. If the vessel were made exactly at the minimum thickness, the first corrosion would already leave it below safe. So a CORROSION ALLOWANCE (CA) is added — a 'sacrificial' over-thickness, typically 1.5 to 6 mm, sized for the expected corrosion rate times the design life (e.g., 0.1 mm/year × 25 years = 2.5 mm). Thus the thickness specified for fabrication is the structural minimum plus the corrosion allowance. Over life, inspection (by ultrasound) measures the REMAINING thickness; when corrosion consumes the whole allowance and the thickness approaches the structural minimum, the vessel must be repaired or retired. The corrosion allowance is like a 'life reserve' built into the wall. Enter the calculated thickness and the corrosion allowance.
Prada Bag Price by Size
Estimates the approximate price of a Prada bag by size and model.
Residential Cistern Size
Estimates household water cistern volume by residents and days of autonomy.
Louver Cross Ventilation Calculator
Computes minimum louver opening area required to deliver target air changes per hour in cross ventilation from room volume and wind speed.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.