The calculator found below will compute the margin of error and confidence interval given the population size, sample size, sample percentage, and confidence level.
If you want to see an animation of the confidence interval, you must use the Animated Confidence Interval Calculator. This calculator does not show an animation.
You may this calculator to determine, out of a general population (whose number is the population size) of people, the range of the population who would choose a particular answer for a survey question. It is usually not possible to survey everyone in the entire group, so only some (whose number is the sample size) are interviewed and the population range is unknown. A certain percentage (the sample percentage) of the sample group picks the answer. If the sample group truly represents the whole population, then the population percentage who would have picked the answer is then known, with a certain confidence level, to be within a certain range (the confidence interval) centered about the sample percentage. The width of that range is twice the margin of error, so a larger margin of error means a wider confidence interval.
To use this calculator, enter numbers into the boxes above the Calculate button, then click on the Calculate button to see the results underneath. The margin of error and confidence interval may be displayed as percentages, or as whole numbers.
Further information about the calculations within this calculator may be found at confidence interval equations.