Using the Margin of Error Calculator
This page multiplies a z score by the square root of a proportion times one minus that proportion, divided by the sample size. Proportion 0.5, sample size 100, and z 1.96 produce the headline 0.098. The percent line is 9.8%. The copy sentence reads: a proportion of 0.5, a sample of 100, and z of 1.96 gives a margin of 0.098, or 9.8 percent.
The proportion is a decimal from 0 to 1, including both ends. Fifty percent is 0.5, not 50. The page does not run a survey, pick respondents, or choose a z score from a named confidence level. You type the three numbers. A sample size must be greater than 0. A z score must be greater than 0 and at most 20.
The Decimal 0.098 and the Percent 9.8%
The headline is the margin as a decimal. For the sample it is 0.098, and the label above it is Margin of error. The lines under it repeat the proportion, the sample size, the z score, the margin again, and the percent as 9.8%. Quoting the headline as 9.8 mixes the two lines. Quoting the percent line as 0.098 does the same mix in the other direction.
How 0.5, 100, and 1.96 Become 0.098
The product p times (1 minus p) is largest when p is 0.5, and that largest product is 0.25. Dividing by the sample size shrinks it. Taking the square root shrinks it again, from 0.0025 to 0.05, and only then does z scale the result. Because the square root sits outside the division, multiplying the sample size by 4 divides the margin by 2 when the proportion and z stay put. Sample 400, proportion 0.5, and z 1.96 return 0.049. Sample 25 with the same proportion and z returns 0.196, which is twice 0.098. A sample size that merely doubles, from 100 to 200, does not halve the margin. The root is the reason.
A chance of an exact success count is a different formula. The Binomial Distribution Calculator returns the probability of exactly k successes in n independent trials. Ten trials, 2 successes, and a probability of 0.5 return 0.0439453125, and the expected success count for that sample is 5. That page does not multiply a z score by a square root, and 0.0439453125 is not a margin of 0.098. Use it when the question is the chance of exactly two successes. Use this page when the question is the margin around a proportion.
Proportion 0, Proportion 1, and 0.2
A proportion of 0 is allowed. Zero times one is zero, the square root of zero is zero, and the margin is 0 no matter which legal sample size and z you pair with it. A proportion of 1 is allowed for the same reason: one minus one is zero, and the margin is 0. The percent line is 0% in both cases. Those two inputs are not errors. They are proportions that leave no product inside the root.
Writing 0.098 Next to the Three Inputs
A complete note says: proportion 0.5, sample 100, z 1.96, margin 0.098, percent 9.8%. A reader can multiply 0.05 by 1.96 and land on the same headline. "About 10 percent" is a later rounding. If you round, keep the page's 0.098 in the same note and say which figure the report uses. Replacing 0.098 with 10 and dropping the inputs makes the next check look like a different sample.
A list of responses has its own summaries. The Mean Median Mode Calculator takes numbers separated by commas or spaces. The list 1, 2, 2, 4 has mean 2.25, median 2, and mode 2. That page does not ask for a z score, and it does not print a margin. If the responses are zeros and ones, the mean of that list can be the proportion you type here, and you still type the sample size and z yourself. Use that page for the mean, the median, and the mode. Use this page once the proportion is a single decimal from 0 to 1.
What This Formula Does Not Finish
The page does not solve for the sample size that would produce a margin you already chose. If you want n, rearrange the formula outside this form and label that step. Typing the desired margin into the proportion field will not solve anything. The proportion field is p, from 0 to 1.
Inputs that Miss 0.098
Typing 50 because the share is fifty percent is rejected. The message is: Proportion must be from 0 to 1. The matching input is 0.5. Typing 95 because you wanted a common confidence label is rejected. The message is: Z score must be greater than 0 and at most 20. The matching input for the sample is 1.96, which you type as a number. A minus sign is not accepted by the field pattern, so -0.1 is reported as Proportion is required, not as a negative proportion. A sample size of 0 is rejected with the message that sample size must be greater than 0 and at most 1000000000. A blank field is required, not treated as zero. Treating a blank as zero would have hit the sample-size guard or produced a margin of 0 from a proportion of 0, and the page refuses to guess which you meant.
Two lists that rise together are not this margin. The Correlation Coefficient Calculator computes Pearson r for two lists of the same length. The lists 1, 2, 3 and 2, 4, 6 return r of 1. Reverse the second list to 3, 2, 1 and r is -1. That page needs at least two pairs and at most 30, and it does not take a single proportion or a z score. An r of 1 is not a margin of 0.098. Finish the margin here, and use the correlation page only when you actually have two paired lists.
Reading 0.098 Against a Changed Input
Change one input at a time when a result looks surprising. Keep proportion 0.5 and z 1.96, and move the sample from 100 to 400. The headline should fall from 0.098 to 0.049. If it falls by some other factor, a digit in the proportion or the z score changed as well. Keep the sample at 100 and the z score at 1.96, and move the proportion from 0.5 to 0.2. The headline should become 0.0784. Keep the proportion and the sample, and raise z from 1.96 to 20. The headline should become 1, because 0.05 times 20 is 1.
The Note that Can Be Recalculated
One block is enough to rebuild the run: proportion, sample size, z score, margin, percent. Add where the proportion came from, in words the page cannot store. "Planning value 0.5" and "counted share 0.5 from 100 responses" produce the same headline and are not the same claim. The formula does not know the difference. The note does. If the sample size you type is not the number of responses you actually have, say so. The page will divide by the number in the field.
Comparing two finished margins is a later step. The Percentage Difference Calculator compares two numbers by the absolute gap divided by the average of their absolute values, times 100. The pair 80 and 100 has absolute difference 20, average magnitude 90, and a displayed percentage difference of 22.22. That page does not know the numbers are margins, and it does not apply z or a square root. Compute each margin here first. Then compare, and write both input triples next to the comparison so a reader can see which sample changed.
What Each Field Accepts
Proportion accepts a decimal written with digits, from 0 to 1. The sample value is 0.5. Values 0 and 1 run and return a margin of 0. A value above 1, including 2 and 50, is rejected with "Proportion must be from 0 to 1." A blank, a letter, or a leading minus is rejected with "Proportion is required." There is no percent sign to strip. If you paste 50%, the percent sign fails the number pattern.
Keep the Headline and the Percent Line Apart
Read the headline first when you are checking the formula, because 0.098 is the product of z and the square root. Read the percent line when the sentence you need is in percent. The copy sentence includes both, so it is the safest paste. A slide that shows only 9.8% should still have the three inputs in the speaker notes. Without them, 9.8% cannot be tied back to 0.05 times 1.96.
The square root and the final multiply can be checked one operation at a time. The 4 Function Calculator adds, subtracts, multiplies, and divides the numbers you enter, and it can take a square root of the current display. It will not reject a proportion of 2, it will not cap z at 20, and it will not label 0.098 as a margin or print 9.8%. Use it to confirm that 0.05 times 1.96 is 0.098. Use this page when the three fields and the percent line have to stay together.
Checking the Calculator
Enter 0.5, 100, and 1.96. Confirm the headline is 0.098 and the percent line is 9.8%. Enter a proportion of 0 with the same sample and z. Confirm the margin is 0. Enter a proportion of 2. Confirm the rejection that says the proportion must be from 0 to 1. Enter a sample size of 0. Confirm the rejection. Enter a z score of 0, then a z score of 21. Confirm both are rejected. Enter sample 400 with proportion 0.5 and z 1.96. Confirm 0.049.