Omni Calculator logo

Negative Binomial Distribution Calculator

Created by Bogna Szyk
Reviewed by Steven Wooding
Last updated: Jun 05, 2023

This negative binomial distribution calculator, otherwise called the Pascal distribution calculator, can help you determine what is the probability of requiring nn trials to achieve a fixed number of successes. We will also provide you with a list of examples of negative binomial distributions to make sure you understand this topic correctly.

What is the negative binomial distribution?

Both the binomial and negative binomial distributions involve consecutive events with a fixed probability of success.

For the binomial distribution, you determine the probability of a certain number of successes observed in nn trials. On the other hand, in negative binomial distributions, your random variable is the number of trials needed to get rr successes.

Picture it like this: you are handing out leaflets on a street. You have 15 leaflets on you and cannot stop until you give all of them away. The probability that a passerby will take a leaflet from you is p=0.4p=0.4.

  • The probability of getting rid of nn leaflets if you try to hand them out to 50 people in binomial distribution is denoted by P(n)P(n).
  • The probability of having to try mm times to give out a leaflet to get rid of all 15 of them is a negative binomial distribution in P(m)P(m).

Notice that while the binomial distribution allows you to try only a specific number of times, the negative has a tail at infinity. After all, you might just have terrible luck and never give out the last leaflet.

To sum up, in a binomial distribution, you have:

  • Fixed number of trials (nn);
  • Random variable the number of successes (denoted with XX); and
  • Possible values are 0≀X≀n0 ≀ X ≀ n.

In the negative binomial distribution, you have:

  • Fixed number of successes (rr);
  • Random variable the number of trials until the rr-th success (denoted with YY); and
  • Possible values are Yβ‰₯rY β‰₯ r.

Negative binomial distribution examples

Some examples of negative binomial distribution include:

  • How many times you need to roll a die until you get three results of 6;
  • How many times you need to knock on doors during the Halloween night until you collect 20 candy bars;
  • How many times you need to flip a coin to get four heads; and
  • How many attempts you need to score three goals in a match.

The negative binomial distribution formula

Our negative binomial calculator uses the following formula:

P(Y ⁣= ⁣n)=(nβˆ’1rβˆ’1)Γ—prΓ—(1βˆ’p)nβˆ’r\small P(Y\!=\!n)\\ = {n-1 \choose r-1} \times p^r \times (1-p)^{n-r}


  • P(Y=n)P(Y=n) is the probability of the exact number of trials nn needed to achieve rr successes;
  • nn is the total number of trials;
  • rr is the number of successes;
  • pp is the probability of one success; and
  • (nβˆ’1rβˆ’1){n-1 \choose r-1} is the so-called "nn choose rr" operation using the values (nβˆ’1)(n-1) and (rβˆ’1)(r-1). (ab){a \choose b} is the number of combinations of bb items that can possibly be assembled from a superset of aa items:
(ab)=a!b!(aβˆ’b)!∴(nβˆ’1rβˆ’1)=(nβˆ’1)!(rβˆ’1)!(nβˆ’r)!\small \begin{aligned} {a \choose b} &= \frac{a!}{b! (a-b)!} \\ \therefore {n-1 \choose r-1} &= \frac{(n-1)!}{(r-1)!(n-r)!} \\ \end{aligned}

How to use the Pascal distribution calculator

Let's solve the problem of the leaflets together.

  1. Determine the number of successes. r=15r=15, because we have to hand out 15 leaflets.
  2. Determine the number of trials. Let's say you want to calculate the probability of handing all leaflets out in 25 trials.
  3. The probability of a stranger taking a leaflet from you is equal to 0.4. Hence, the probability of an individual success is p=0.4p = 0.4.
  4. Calculate the number of combinations (nβˆ’1n-1 choose rβˆ’1r-1, so 2424 choose 1414). You can use the combination calculator to do this. This number, in our case, is equal to 1, ⁣961, ⁣2561,\!961,\!256.
  5. Substitute all these values into the binomial probability formula above:
P(Y=50) ⁣ ⁣ ⁣=1, ⁣961, ⁣256Γ—0.415Γ—(1β€‰β£βˆ’β€‰β£0.4)25βˆ’15 ⁣ ⁣ ⁣=0.01273\small \begin{aligned} & P(Y=50) \\ &\!\!\!= 1,\!961,\!256 \times 0.4^{15} \times (1\!-\!0.4)^{25-15} \\ &\!\!\!= 0.01273 \\ \end{aligned}

You can also save yourself some time and use the negative binomial distribution calculator instead πŸ˜€

Bogna Szyk
Related calculators
n (number of events)
r (number of successes)
Probability of one success
Probability of Y=n
Check out 32 similar distributions and plots calculators πŸ””
Benford's lawBeta distributionBinomial distribution… 29 more
People also viewed…

Critical value

The critical value calculator helps you find the one- and two-tailed critical values for the most widespread statistical tests.


This millionaire calculator will help you determine how long it will take for you to reach a 7-figure saving or any financial goal you have. You can use this calculator even if you are just starting to save or even if you already have savings.


Do you feel like you could be doing something more productive or educational while on a bus? Or while cleaning the house? Well, why don't you dive into the rich world of podcasts! With this podcast calculator, we'll work out just how many great interviews or fascinating stories you can go through by reclaiming your 'dead time'!

Probability fraction

Learn how to express probability as a fraction with our probability fraction calculator!
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service