NEGBINOMDIST in Apple Numbers: Failures Before Successes
Calculate the chance of a chosen number of failures before a fixed number of successful trials in Apple Numbers.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer. =NEGBINOMDIST(3,68,0.95) has Apple’s documented result 0.20913174716192. It represents exactly 3 failures before the 68th success when every independent attempt succeeds with probability 0.95. This is not the probability of three failures in a fixed number of trials, and the arguments are not trials, successes, probability.
Availability and version history
- Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
- Availability: Documented for Numbers in Apple’s Formulas and Functions Help 15.4; no final supported-version endpoint is established.
- Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
- Checked: October 14, 2026, against the official NEGBINOMDIST reference. Documentation and independent arithmetic checks; no native Numbers test.
What this calculation answers
Use NEGBINOMDIST when the experiment continues until a fixed number of successes. The number of failures is random. Examples include retries until a target number of independently completed jobs or calls until a fixed number of independently successful outcomes; the same per-attempt probability must remain plausible. This differs from BINOMDIST, which fixes the total number of attempts and counts successes. For successes r≥1, failures f≥0, and constant success chance 0<p<1, the standard count probability is:
P(F=f before r successes) = COMBIN(f+r-1, f) × p^r × (1-p)^f
The combinatorial term counts the ways the first f+r−1 attempts can contain r−1 successes and f failures; the final attempt is the r-th success. That reasoning is an independent mathematical derivation, not a claim that Numbers evaluates COMBIN identically for every input.
Exact Apple syntax, positional arguments and defaults
=NEGBINOMDIST(f-num, s-num, prob-success)
| Order | Apple argument | Apple-described type | Required | Published restriction | Default |
|---|---|---|---|---|---|
| 1 | f-num |
Number value | Yes | failures ≥0 |
None |
| 2 | s-num |
Number value | Yes | successful trials/tests ≥1 |
None |
| 3 | prob-success |
Number value | Yes | success probability strictly >0 and <1 |
None |
For a meaningful count distribution enter whole nonnegative failure counts and whole positive success targets. Apple’s article gives numeric bounds but does not establish a rounding or truncation rule for fractional f-num or s-num; don’t infer one from another spreadsheet. The endpoints p=0 and p=1 are excluded by Apple’s published bounds, even where a mathematical limit might be definable. There is no cumulative TRUE/FALSE switch or optional argument in this function’s documented signature.
Reproduce a probability table in Numbers
Create a Numbers table named TrialsToTarget with at least six columns and thirteen rows. Add header labels at B1 Failures f, C1 Probability at f, E1 Success target r, and F1 Success chance p. Put 3 in E2 and 0.4 in F2; put the whole numbers 0,1,2,3,4,5,6,7 in B2:B9. In C2 enter the formula below, then fill C2 through C9:
=NEGBINOMDIST(B2,$E$2,$F$2)
The $ keeps the success target and probability anchored as the failure count changes. In another table, the equivalent parameter cells would need their proper qualified references, such as TrialsToTarget::E2. This is Numbers notation—not an Excel sheet reference.
| f (column B) | Independently expected C: P(F=f) |
|---|---|
| 0 | 0.0640000000 |
| 1 | 0.1152000000 |
| 2 | 0.1382400000 |
| 3 | 0.1382400000 |
| 4 | 0.1244160000 |
| 5 | 0.1045094400 |
| 6 | 0.0836075520 |
| 7 | 0.0644972544 |
Each row is a point probability for one failure count, not a cumulative probability. The events represented by different rows are mutually exclusive. Adding just f=0..7 cannot equal one because larger failure counts remain possible. The displayed values can be checked independently with the combinatorial formula above.
Advanced examples
1. Probability of exactly two failures before three successes
=NEGBINOMDIST(2,3,0.4)
Expected 0.13824 (COMBIN(4,2)×0.4³×0.6²). It is important that the last (fifth) attempt is the third success. BINOMDIST(3,5,0.4,FALSE) asks a different fixed-five-attempts question.
2. Probability of at most two failures
NEGBINOMDIST lacks a cumulative-mode argument. Sum the relevant point probabilities yourself:
=NEGBINOMDIST(0,3,0.4)+NEGBINOMDIST(1,3,0.4)+NEGBINOMDIST(2,3,0.4)
Expected 0.31744, the sum of 0.064 + 0.1152 + 0.13824. With the table, enter =SUM(C2:C4) in C11 to calculate the same sum. The SUM guide explains range totals. Do not replace the last argument by TRUE: the third argument is a probability, not a mode selector.
3. More than two failures before hitting the target
=1-(NEGBINOMDIST(0,3,0.4)+NEGBINOMDIST(1,3,0.4)+NEGBINOMDIST(2,3,0.4))
Enter the complement formula in C12. Expected 0.68256, the complement of the ≤2-failure event. This assumes the negative-binomial model is appropriate and completion eventually occurs with positive per-trial success chance.
4. Interpret a high-success-rate process correctly
Apple’s published example =NEGBINOMDIST(3,68,0.95) gives 0.20913174716192. The count 68 is the success target, not the total number of opportunities. To estimate a retry budget in an actual process, validate the independence and constant-p assumptions; correlated outcomes or changing customer mix can make a seemingly precise probability unhelpful.
Errors, limits and troubleshooting
| Situation | Why it is problematic | How to correct it |
|---|---|---|
=NEGBINOMDIST(3,68) |
Mandatory probability argument missing | Supply the third argument. |
=NEGBINOMDIST(-1,3,0.4) |
Violates f-num≥0 |
Check that failure count is nonnegative. |
=NEGBINOMDIST(2,0,0.4) |
Violates s-num≥1 |
Use a positive success target. |
=NEGBINOMDIST(2,3,0) or probability 1 |
Apple’s documented strict bounds exclude endpoints | For this function, enter 0<p<1; do not assume it evaluates mathematical limits. |
=NEGBINOMDIST(2,3,40) |
40 is not 40% and violates probability bounds | Use 0.4 or a correctly stored 40% cell. |
| Output treated as cumulative | Function returns one failure count’s probability | Explicitly sum f=0..k for a cumulative event. |
| Fractional f or r | The help does not state a coercion guarantee | Use whole count values; fractional-count coercion remains unverified. |
| Numerous correlated or time-varying trials | Model assumptions fail | Reconsider probability model instead of manipulating arguments. |
Apple’s help does not enumerate a universal error token, overflow threshold, rounding behavior or numerical-precision limits for these cases. Label them invalid/unsupported assumptions rather than promising a specific Excel-style error. Tiny probabilities can display as rounded zero in a narrow number-format cell.
Common questions
Is this a cumulative negative-binomial function? No: Apple’s function returns the probability of the specified failure count, with no cumulative mode. Sum the required failure-count probabilities to make your own cumulative value.
What is counted as success? Whatever single event you define as success, provided the model uses a stable probability per independent attempt; s-num is the required number of successes, not the successes already seen.
Can I copy the syntax from an application that calls the function NEGBINOM.DIST? Do not assume the spelling or cumulative options match. The English Apple canonical name documented here is NEGBINOMDIST, with no punctuation and three arguments.
Related official Apple function guides
Locale, table references and verification scope
The formulas use decimal points and comma-separated arguments. Apple’s function overview says to use semicolons when the decimal separator is a comma: for example, =NEGBINOMDIST(2;3;0,4). That separator rule does not verify every localized function-name alias.
Numbers organizes cells into named tables. Use a table qualifier for another table’s inputs, and keep the $ anchors when filling the practice formula. Apple’s cell-reference guide describes these reference forms.
The examples were independently recalculated using the exact combinatorial mass and a separate recurrence. Fractional-count coercion, blank/text inputs, extreme-tail precision and exact error labels remain unverified. Current app requirements are distinct from this function’s unknown introduction version: Apple lists macOS 26 for Numbers 15.4 on Mac and iPadOS 26 for Numbers 15.4 on iPad.