InputTestHub

Card Probability Calculator

Calculates the chance of drawing a given number of matching cards from a deck, and shows how sampling without replacement differs.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Four aces, thirteen hearts, or however many count as a hit.
Enter your figures and press Calculate.
In short Drawing five cards from a standard deck, the chance of getting at least one ace is 34.12%, and the chance of exactly one is 29.95%. This is the hypergeometric distribution: sampling WITHOUT replacement, where every card you take changes what is left. That dependence is the whole point. If you put each card back before drawing again, the draws become independent and the answer changes — exactly one ace becomes 27.92% rather than 29.95%. The page shows both columns side by side, because the difference between them is the difference between two genuinely different questions, and using the binomial for a without-replacement problem is one of the most common modelling mistakes there is. One thing that does NOT change is the average. The expected number of aces in five cards is 0.3846 either way; removing cards alters the spread of the outcome, not its mean, which surprises people who expect dependence to shift everything. The same engine runs the lottery page, because "how many of my six numbers are among the six drawn" is the same question as "how many of my five cards are aces". Set the deck size and the number of matching cards for any drawing problem at all — raffle tickets, quality sampling from a batch, or a card game with a non-standard deck.

How to use the Card Probability Calculator

  1. Enter your figures in the input fields.
  2. The result updates as you type, together with the full working.
  3. Check the breakdown table to see exactly how the number was reached.

About the Card Probability Calculator

The chance of drawing matching cards, with and without replacement.

What people use it for

  • Working out draw odds in a card game.
  • Quality sampling from a finite batch.
  • Seeing when the binomial is the wrong model.

Details

At least one ace in five cards34.12%
Exactly one ace in five cards29.95%
The same with replacement27.92%
Expected aces in five cards0.3846, either way
Same engine asthe lottery odds calculator

The maths behind it

This tool uses P(exactly k) = C(K,k) × C(N−K, n−k) ÷ C(N,n), the hypergeometric distribution. Every intermediate value is shown on screen, so the result can be checked by hand.

The table prints the without-replacement and with-replacement answers next to each other for every number of matches, so the size of the modelling error is visible rather than theoretical.

Where this tool stops

A well-shuffled deck with every card equally likely, and matches defined only by the count you enter. It cannot express conditions like "at least one ace AND at least one king", which need the inclusion-exclusion principle.

Frequently asked questions

What is the difference from the binomial?
The binomial assumes the probability is the same every time, which is only true if you replace each card. Without replacement the odds shift as you draw, and that is what the hypergeometric handles.
Why is the expected number the same either way?
Because expectation adds regardless of dependence. Each card drawn has the same chance of being an ace on its own; what replacement changes is how the outcomes spread around that average, not the average itself.
Can I use this for things other than cards?
Yes — any draw from a finite pool. Raffle tickets, defective items in a batch, or numbers in a lottery are all the same calculation with different labels.
How do I work out the chance of at least one?
Set the mode to "at least" with 1 match. It is usually far easier than adding up the individual cases, and it is the question people actually have.
Are there any usage caps on the Card Probability Calculator?
No charge and no sign-up. There is no free tier to run out of because there is no paid tier — inputtesthub.com is funded by advertising rather than by metering the utility.
Is the Card Probability Calculator safe to use with private information?
No. The Card Probability Calculator runs entirely in your browser using JavaScript. Because the work happens locally, the utility also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
Can I check the maths myself?
It uses P(exactly k) = C(K,k) × C(N−K, n−k) ÷ C(N,n), the hypergeometric distribution. The full working is printed under the result, so you can follow every step rather than trusting a black box.
Can you show an example?
Enter 5 cards from 52, at least one ace and the Card Probability Calculator returns 34.12%.
Who is the Card Probability Calculator for?
In practice it gets used for three things: working out draw odds in a card game. Quality sampling from a finite batch. Seeing when the binomial is the wrong model. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
When is the Card Probability Calculator not the right tool?
A well-shuffled deck with every card equally likely, and matches defined only by the count you enter. It cannot express conditions like "at least one ace AND at least one king", which need the inclusion-exclusion principle. Knowing where a tool stops being trustworthy matters more than the cases where it works.
Which values should I know?
At least one ace in five cards is 34.12%. Exactly one ace in five cards is 29.95%. The same with replacement is 27.92%. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…