Skip to content
Statculator
Sample Size

Yamane’s Formula Calculator

Free Yamane formula calculator: sample size from n = N / (1 + N·e²) or the general form at any confidence level, with steps, tables and a Slovin check.

Free, no sign-up Runs in your browserBy Hira Noor, BS MathematicsUpdated

Try
Formula

Simplified: n = N / (1 + N·e²). General: lets you set the confidence level and expected proportion.

%

Enter 5 for ±5% (e = 0.05).

Results

Sample size, n (simplified formula)
345
Rounded up from 344.8276
General formula at 95%, p = 50%
333
z²·p(1 − p) = 0.9604
Population size, N
2,500
Margin of error, e
0.05
Variance factor, z²·p(1 − p)
1 (fixed)
N · e²
6.25
n (unrounded)
344.8276
Large-population limit, z²p(1 − p) / e²
400
Sampling fraction, n / N
13.8%

Interpretation: Sample 345 of the 2,500 population members for a margin of error of ±5% (implicitly about 95% confidence with p = 50%). Stating the confidence level explicitly as 95% with the general formula gives 333.

Sample size for N = 2,500 by margin of error (p = 50% in the general columns)

eSimplifiedGeneral, 90%General, 95%General, 99%
1%2000182619842173
2%1250100912251560
3%7705787481061
4%500362485733
5%345245333525
6%250175242390
7%189131182299
8%148102142235
9%11881114190
10%976693156

All values are rounded up. The simplified column does not depend on the confidence level or p.

Step-by-step solution

  1. 1

    Write the margin of error as a decimal

    e = 5% = 0.05
  2. 2

    Compute N · e²

    N · e² = 2,500 × 0.0025 = 6.25
  3. 3

    Apply the simplified formula

    n = N / (1 + N · e²)
    n = 2,500 / (1 + 6.25) = 2,500 / 7.25 = 344.8276
  4. 4

    Round up

    n = ⌈344.8276⌉ = 345
  5. 5

    See what the simplified form assumes

    The simplified formula is the general one with z² · p(1 − p) = 1. With p = 0.5 that means z = 2, about 95.45% confidence.

    General form at 95% (z = 1.96), p = 0.5: n = 333

What is a Yamane’s Formula Calculator?

A Yamane formula calculator finds the sample size needed from a finite population using Taro Yamane’s formula, n = N / (1 + N·e²), where N is the population size and e is the margin of error, and rounds the result up. For N = 2,500 and e = 5% it gives 345; for a population of 200 it gives 134. The general form, n = N·z²·p(1 − p) / (N·e² + z²·p(1 − p)), adds a confidence level and an expected proportion.

What the Yamane’s Formula Calculator does

Choose the Simplified or General formula, enter the population size and margin of error (plus the confidence level and expected proportion for the general form), and the calculator returns the rounded-up sample size, the result from the other form for comparison, every arithmetic step, and a table covering margins from 1% to 10% at 90%, 95% and 99% confidence.

The simplified formula appears in Taro Yamane’s Statistics: An Introductory Analysis (2nd ed., 1967) and is algebraically identical to the formula widely known as Slovin’s formula. Its appeal is that it needs only N and e. The general form shows what the simplified version takes for granted: it is the same expression with z²·p(1 − p) set to 1, which happens when p = 0.5 and z = 2. Use the general form when you need to state a confidence level, or when you have a realistic estimate of p.

How to use the Yamane’s Formula Calculator

  1. Choose Simplified for n = N / (1 + N·e²), or General to control the confidence level and proportion.
  2. Enter the Population size, N and the Margin of error, e as a percentage (5 for ±5%).
  3. For the general formula, also enter the Confidence level and the Estimated proportion, p (50% if unknown).
  4. Read the sample size, compare it with the other form shown beside it, and use the table to explore other margins and confidence levels.

What is Taro Yamane’s formula?

Taro Yamane’s formula is a rule for the minimum sample size needed to estimate a percentage in a finite population: n = N / (1 + N·e²), with N the population size and e the margin of error as a decimal. Taro Yamane, an economist and statistician at New York University, presented it in Statistics: An Introductory Analysis (Harper and Row, 2nd ed., 1967), which is why theses cite it as “Yamane (1967)”, the Taro Yamane formula or the Yamane method, and why it is often called the Yamane 1967 sample size formula.

The method is simple: decide the margin of error you can accept, plug N and e into the formula, and round up. Like any formula of this kind it assumes a simple random sample and a result reported as a proportion. It also levels off as the population grows: at e = 5% the sample never exceeds 400, because n approaches 1 / e² when N is large.

How to calculate Yamane’s formula step by step

To calculate the Yamane sample size for a population of 1,000 at a 5% margin of error:

  1. Convert the margin of error to a decimal and square it: e = 5% = 0.05, so e² = 0.0025.
  2. Multiply by the population size: N·e² = 1,000 × 0.0025 = 2.5.
  3. Add 1: 1 + N·e² = 3.5.
  4. Divide the population size by that number: n = 1,000 / 3.5 = 285.71.
  5. Round up, never down, to a whole person: n = 286.

Yamane’s formulas

Simplified (Yamane, 1967)
n = N / (1 + N · e²)
General finite-population form
n = N · z² · p(1 − p) / [N · e² + z² · p(1 − p)]
Same general form, written with n₀
n₀ = z² · p(1 − p) / e² n = n₀ / (1 + n₀ / N)
Formula symbols
SymbolMeaning
nrequired sample size (round up)
Npopulation size
emargin of error as a decimal (5% = 0.05)
zcritical value for the confidence level (1.96 for 95%)
pexpected proportion (0.5 if unknown)

Setting z²·p(1 − p) = 1 in the general form gives N / (N·e² + 1), the simplified formula. With p = 0.5, z²·p(1 − p) = 1 requires z = 2, so the simplified formula corresponds to about 95.45% confidence. With the conventional z = 1.96 the factor is 0.9604, which is why the general form at 95% gives a slightly smaller n.

The n₀ version shows that the general form is Cochran’s large-population formula followed by the correction n₀ / (1 + n₀ / N). Cochran’s textbook uses n₀ / [1 + (n₀ − 1) / N], which differs by at most a unit or so.

Sources: Yamane, T. (1967), Statistics: An Introductory Analysis, 2nd ed., Harper and Row; Israel, G. D. (1992), Determining Sample Size, University of Florida IFAS Extension, Fact Sheet PEOD-6; Cochran, W. G. (1977), Sampling Techniques, 3rd ed., Wiley; Tejada, J. J., & Punzalan, J. R. B. (2012), “On the misuse of Slovin’s formula”, The Philippine Statistician, 61(1), 129–136.

Worked example

Worked example: households in a district

Problem. A district has 2,500 households. A researcher wants a ±5% margin of error. Find the sample size with Yamane’s simplified formula, then with the general form at 95% confidence and p = 50%.

  1. 01Simplified: N·e² = 2,500 × 0.0025 = 6.25, so n = 2,500 / (1 + 6.25) = 2,500 / 7.25 = 344.8276, rounded up to 345.
  2. 02General: at 95% confidence z = 1.959964, so z²·p(1 − p) = 1.959964² × 0.5 × 0.5 = 0.960365.
  3. 03n = 2,500 × 0.960365 / (6.25 + 0.960365) = 2,400.9118 / 7.2104 = 332.9806, rounded up to 333.

Answer. The simplified formula asks for 345 households and the general form at 95% confidence asks for 333. The gap of 12 comes entirely from the simplified formula’s hidden z = 2 instead of 1.96.

Yamane sample size table at a 5% margin of error

What is the sample size for a population of 200? With e = 5%, N·e² = 200 × 0.0025 = 0.5, so n = 200 / 1.5 = 133.33, which rounds up to 134. The table repeats the calculation for other population sizes and adds the general form at 95% and 99% confidence (p = 50%).

Population size, Nn (unrounded)Yamane sample, nShare of populationGeneral, 95%General, 99%
5044.444590%4547
10080.008080%8087
200133.3313467%132154
300171.4317257.3%169207
400200.0020050%196250
500222.2222344.6%218286
1,000285.7128628.6%278399
2,000333.3333416.7%323499
5,000370.373717.4%357586
10,000384.623853.9%370623
100,000398.413990.4%383660
1,000,000399.84400< 0.1%384664

Yamane sample sizes by margin of error

Rounded-up sample sizes from the simplified formula. Pick a row for your margin of error and a column for your population size. Halving e roughly quadruples the sample once N is large.

Margin of errorN = 100N = 500N = 1,000N = 5,000N = 10,000N = 100,000
1%1004779103,3345,0009,091
2%974177151,6672,0002,440
3%923455279101,0001,099
5%80223286371385399
10%50849199100100

Simplified or general: which Yamane formula should you use?

Both formulas assume a simple random sample from a finite population and an estimate that is a proportion. They differ only in how much they let you specify.

SimplifiedGeneral
InputsN and eN, e, confidence level, p
Confidence levelFixed, about 95.45%Any (90%, 95%, 99%, …)
Expected proportionFixed at 0.5Your estimate (0.5 is safest)
N = 2,500, e = 5%345333 at 95%, 525 at 99%
Best forQuick estimates and course work that requires itProposals and reports that must state their assumptions

Yamane vs Slovin vs Cochran: are they the same formula?

Yes. Yamane’s simplified formula and Slovin’s formula are the same expression, n = N / (1 + N·e²), and give identical answers. Slovin’s version is usually credited to “Slovin (1960)”, but no original publication has been traced, so many supervisors prefer the citable Yamane (1967). Cochran’s formula reaches the same kind of answer but lets you choose the confidence level and the expected proportion; with z = 1.96 it gives slightly smaller samples.

Yamane (simplified)SlovinCochran
Formulan = N / (1 + N·e²)n = N / (1 + N·e²)n₀ = z²p(1 − p) / e², then n = n₀ / [1 + (n₀ − 1) / N]
Published sourceYamane (1967) textbookNot tracedCochran (1977) textbook
Confidence levelFixed, about 95%Fixed, about 95%Any
N = 1,000, e = 5%286286278
N = 10,000, e = 5%385385370

How to report Yamane’s formula in a thesis

State the formula, the inputs and what the formula assumes. A sentence you can adapt:

“The sample size was determined with Taro Yamane’s formula, n = N / (1 + N·e²) (Yamane, 1967), for a population of 2,500 households and a margin of error of 5%, giving n = 344.83, rounded up to 345. The formula assumes simple random sampling, about 95% confidence and p = 0.5.”

If you expect some people not to respond, divide by the expected response rate and invite that many: 345 completed responses at a 75% response rate means inviting 345 / 0.75 = 460 households.

How to calculate Yamane’s formula in Excel or Google Sheets

Put the population size in cell A2 and the margin of error as a decimal in B2 (0.05 for 5%), then enter =ROUNDUP(A2/(1+A2*B2^2),0). For N = 2,500 and e = 0.05 the cell shows 345. For the general form at 95% confidence with p in C2, use =ROUNDUP(A2*NORM.S.INV(0.975)^2*C2*(1-C2)/(A2*B2^2+NORM.S.INV(0.975)^2*C2*(1-C2)),0), which gives 333 for p = 0.5.

Common use cases

  • Research proposals and theses that cite Yamane (1967) for the sample size of a survey.
  • Household, school or employee surveys of a population with a known size.
  • Sensitivity checks: see how the sample size changes between 90%, 95% and 99% confidence before committing to a budget.
  • Reconciling methods: show that the Slovin, Yamane and Cochran approaches give nearly the same answer under the same assumptions.

Assumptions and limitations

  • Both forms assume simple random sampling. Cluster or multistage designs need a larger sample (multiply by the design effect).
  • They size the estimate of one proportion. For a mean, a comparison between groups or a hypothesis test, use a formula based on the standard deviation or a power analysis, as in the sample size calculator.
  • The simplified form cannot express any confidence level other than about 95%. If a reviewer asks for 99% confidence, switch to the general form or to Cochran’s formula.
  • Neither form allows for non-response. Divide the result by the expected response rate to get the number of people to contact.

Frequently asked questions

What is Yamane’s formula?

Yamane’s simplified formula is n = N / (1 + N·e²), where N is the population size and e is the margin of error. It was presented by Taro Yamane in his 1967 statistics textbook as a quick way to size a sample from a finite population, and the answer is rounded up to a whole number.

How do you calculate Yamane’s formula?

Square the margin of error as a decimal, multiply by the population size, add 1, divide the population size by the result and round up. For N = 1,000 and e = 5%: 1,000 × 0.0025 = 2.5, 1,000 / 3.5 = 285.71, so n = 286.

What is the sample size of a population of 200 using Yamane’s formula?

At a 5% margin of error the sample size is 134: n = 200 / (1 + 200 × 0.0025) = 200 / 1.5 = 133.33, rounded up. At a 10% margin it is 67. With a population this small, consider surveying everyone if it is practical.

Is Yamane’s formula the same as Slovin’s formula?

Yes, the simplified Yamane formula and Slovin’s formula are the same expression, n = N / (1 + N·e²), and give identical sample sizes. Yamane’s 1967 textbook is a well-documented published source for it, which is one reason many researchers cite Yamane rather than Slovin.

What confidence level does Yamane’s simplified formula assume?

About 95%. The simplified formula equals the general formula with z²·p(1 − p) = 1, and with p = 0.5 that means z = 2, which corresponds to a 95.45% confidence level. It does not let you choose a different level.

When should I use the general Yamane formula?

Use the general form whenever you need a confidence level other than about 95%, have a pilot estimate of the proportion, or must document your assumptions. For example, at 99% confidence with N = 2,500 and e = 5%, the general form requires 525 instead of the 345 from the simplified formula.

How do I calculate Yamane’s sample size for a population of 400?

With e = 5%, N·e² = 400 × 0.0025 = 1, so n = 400 / (1 + 1) = 200. Half the population is needed because the population is small; for small groups like this, consider surveying everyone if it is practical.

Cite this page

Statculator. (2026, November 14). Yamane’s Formula Calculator. Retrieved November 14, 2026, from https://statculator.com/sample-size/yamanes-formula-calculator/