and Probability Calculator - Joint P(A and B) for Two Events

Use this and probability calculator to find the joint probability P(A and B) for two events in independent or dependent mode, with the decimal and percent.

Updated: June 16, 2026 • Free Tool

and Probability Calculator

Probability of event A as a decimal between 0 and 1. Use 0.5 for a fair coin landing heads.

Probability of event B as a decimal between 0 and 1. Used in independent mode and shown for reference in dependent mode.

Conditional probability of B given A as a decimal between 0 and 1. Used as the second factor in dependent mode and ignored when Event Type is Independent.

Independent events use P(A) × P(B). Dependent events use the general rule P(A) × P(B|A) and ask for the conditional probability.

Results

P(A and B) - Decimal
0
P(A and B) - Percent 0%

What Is an and Probability Calculator?

An and probability calculator finds the joint probability P(A and B), the chance that two events both happen. Enter the probability of event A, the probability of event B, and choose whether the events are independent or dependent. The result panel shows the joint probability as a decimal and a percentage, ready to drop into a stats homework answer, a Monte Carlo note, or a risk worksheet.

  • Independent events: Use the multiplication rule P(A) × P(B) for coin tosses, dice rolls, draws with replacement, and any other situation where the second event is not affected by the first.
  • Dependent events: Switch to the general multiplication rule P(A) × P(B|A) when the first outcome changes the second, like drawing cards without replacement or sampling parts from a small batch.
  • Stats homework and exam checks: Verify the joint probability of two events when you already have a conditional probability from a contingency table or a tree diagram.
  • Risk and reliability planning: Estimate the chance that two failure modes happen in the same interval, or that two sensors both trip in a window.

Joint probability is the foundation of compound events. Bayes' theorem, the binomial distribution, and the geometric distribution all build on the same multiplication rule.

For the full workflow that also covers conditional probability and P(A or B), the Probability Calculator covers single-event, dependent, and conditional modes in the same page.

How the and Probability Calculator Works

The calculator reads P(A), P(B), and the Event Type, validates that every probability is in [0, 1], picks the right multiplication rule, and renders the result. A worked example links the inputs to a real coin toss.

P(A and B) = P(A) × P(B) (independent events); P(A and B) = P(A) × P(B|A) (dependent events)
  • P(A): Probability of event A, entered as a decimal between 0 and 1.
  • P(B): Probability of event B, entered as a decimal between 0 and 1. Used as the second factor in independent mode.
  • P(B|A): Conditional probability of B given A, used as the second factor in dependent mode.
  • Event Type: Selects which multiplication rule the calculator applies. Independent uses P(A) × P(B); dependent uses P(A) × P(B|A).

Because every input is a probability, the joint probability is always between 0 and 1. If P(A) or P(B) is 0 the result is 0, and the only way to reach 1 is for both factors to be 1.

Two heads in two fair coin tosses

Event Type = Independent, P(A) = 0.5, P(B) = 0.5

P(A and B) = 0.5 × 0.5 = 0.25.

P(A and B) = 0.25 (25%).

Out of every 400 pairs of coin tosses, about 100 land heads both times, the textbook example of two independent flips.

Two sixes from two fair dice rolls

Event Type = Independent, P(A) = 1/6 ≈ 0.1667, P(B) = 1/6 ≈ 0.1667

P(A and B) = (1/6) × (1/6) = 1/36 ≈ 0.0278.

P(A and B) ≈ 0.0278 (2.78%).

A pair of sixes happens in roughly 1 out of every 36 die-roll pairs (1/36).

According to Omni Calculator, joint probability of two independent events equals P(A) × P(B) and the probability of two heads in two coin tosses is 0.5 × 0.5 = 0.25.

According to Wolfram MathWorld, two events A and B are independent when P(A and B) = P(A) × P(B), the defining property for joint probability of independent events.

When P(A and B) is the same value repeated n times, the Binomial Distribution Calculator uses the multiplication rule across all n trials to return the full binomial probability.

Key Concepts Behind Joint Probability

Four short ideas make the rest of joint probability click: independent versus dependent events, conditional probability, the Venn diagram, and the link to a tree diagram.

Independent vs dependent events

Two events are independent when the first outcome does not change the probability of the second, like two coin tosses. They are dependent when the first outcome does change the second, like drawing two cards without replacement.

Conditional probability P(B|A)

Conditional probability is the probability of B given that A has already happened. It is the extra number needed to compute P(A and B) for dependent events, and the bridge to Bayes' theorem.

Venn diagram and intersection

On a Venn diagram, the intersection A ∩ B is the slice where both events occur. Joint probability P(A and B) is the size of that slice, always smaller than or equal to the size of either circle.

From P(A and B) to tree diagrams

Multiplication along the branches of a probability tree is the same rule as this calculator. Independent branches keep the same probability; dependent branches swap in P(B|A).

Whenever the question is 'both A and B happen,' the multiplication rule is the right tool, and the only choice is whether to feed in P(B) or P(B|A).

When the question is how many independent trials you need until the first success, the Geometric Distribution Calculator uses the same multiplication rule to estimate the waiting time.

How to Use the and Probability Calculator

Pick the event type, type the two probabilities, and read the joint probability. Switch to dependent mode when the second event is affected by the first.

  1. 1 Pick the event type: Open the Event Type dropdown and choose Independent for events that do not affect each other, or Dependent when the first outcome changes the second.
  2. 2 Enter P(A): Type the probability of event A as a decimal between 0 and 1. Use 0.5 for a fair coin, 1/6 ≈ 0.1667 for a fair die, or a percent from a problem statement divided by 100.
  3. 3 Enter P(B): In Independent mode, P(B) is the second factor. In Dependent mode it is kept for reference, and P(B|A) is used in the formula.
  4. 4 Enter P(B|A) for dependent events: Switch Event Type to Dependent and type the conditional probability of B given A, the only number that changes the formula.
  5. 5 Read P(A and B): The result panel shows the joint probability as a decimal (four places) and a percent (two places), updating in real time as the inputs change.
  6. 6 Reset to the coin-toss example: Click Reset to return to P(A) = 0.5 and P(B) = 0.5 in independent mode, which gives the 0.25 / 25% result.

Example: a six-sided die is rolled twice. P(A) = 1/6 ≈ 0.1667 and P(B) = 1/6 ≈ 0.1667 are both independent. The calculator returns 0.0278 (2.78%), the same 1/36 number you would get by counting the one favorable pair (6,6) out of 36 possible pairs.

When the inputs to P(A and B) come from a sample of observed outcomes, the Statistics Calculator computes the empirical mean, variance, and standard deviation for the same data.

Benefits of Using This and Probability Calculator

Multiplying small decimals by hand is where most of the avoidable mistakes happen. The calculator keeps the rules, the conditional probability, and the percent-to-decimal step in one place.

  • Both multiplication rules in one tool: Independent uses P(A) × P(B), dependent uses P(A) × P(B|A); the Event Type dropdown switches between them.
  • Decimal and percent at the same time: The result panel shows P(A and B) as a decimal with four places and as a percent with two places, the format most textbooks and exam questions expect.
  • Validates inputs before computing: Any probability outside [0, 1] stops the calculation and shows an error that names the field, so you never see a result that is not a valid probability.
  • Reinforces the Venn-diagram view: P(A and B) is the size of the intersection in a Venn diagram, so the number lines up with the picture you would draw on paper.
  • Powers bigger compound events: Chain the result back through the inputs to estimate P(A and B and C) for three or more events, the building block of the binomial and geometric distributions.

For classroom and homework use, the calculator doubles as a check against the multiplication rule you write on paper. For applied work, the same workflow gives a quick Monte Carlo sanity check on joint-event assumptions.

When the joint probability is small enough to fall in the tail of a normal model, the Z-Score Calculator converts it into a z-score that can be looked up on a standard normal table.

Factors That Affect the Result and Its Limits

The multiplication rule is exact, but four choices about the inputs change what the result means.

Independence assumption

If the events are not actually independent, P(A) × P(B) is the wrong formula. Dependence can push the joint probability in either direction: when A makes B more likely the product P(A) × P(B) understates P(A and B), and when A makes B less likely the same product overstates it. The dependent mode with a real P(B|A) captures the direction and size of the link, which is why it is the right tool whenever the events are linked.

Quality of the input probabilities

A joint probability is only as good as the marginal and conditional values you enter. Empirical rates from a small sample propagate into the joint result.

Definition of the events

P(A and B) is the probability that both events happen in the same trial. If A and B happen at different times, the calculator still gives a numerical answer, but the interpretation must allow for that.

Rounding and precision

The result is displayed at four decimal places in decimal form. When the joint probability feeds into a larger chain, keep the full float to avoid compounding rounding error.

  • The calculator handles exactly two events. For three or more events, chain the rule: multiply P(A) by the conditional probability of B given A, then by the conditional probability of C given A and B, and so on.
  • It is a single-trial calculator. If the events happen many times in a row, use a distribution calculator such as the binomial or geometric distribution.

When the inputs come from a clear definition and the events are well modeled, the multiplication rule is exact and the result is a defensible joint probability.

According to Khan Academy, the general multiplication rule P(A and B) = P(A) × P(B|A) applies to any two events and reduces to P(A) × P(B) for independent events.

For waiting times between two independent Poisson events, the Exponential Distribution Calculator turns the per-event rate into the probability of a gap shorter than a threshold.

and probability calculator input P(A), P(B), and mode with the joint probability P(A and B) result as a decimal and percent and a worked coin-toss example.
and probability calculator input P(A), P(B), and mode with the joint probability P(A and B) result as a decimal and percent and a worked coin-toss example.

Frequently Asked Questions

Q: How do I find the probability of A and B?

A: Type P(A) and P(B) into the and probability calculator and keep the default Independent event type. The calculator returns the joint probability P(A and B) as a decimal and as a percent using the multiplication rule P(A) × P(B).

Q: What is the formula for the joint probability of independent events?

A: For two independent events A and B, the joint probability is P(A and B) = P(A) × P(B). Both factors are the marginal probabilities of the single events, so the result is the product of the two decimal values.

Q: What is the multiplication rule for dependent events?

A: For dependent events, the general multiplication rule is P(A and B) = P(A) × P(B|A). The calculator uses this rule when the Event Type is set to Dependent, and P(B|A) is the conditional probability of B given A.

Q: What is the difference between P(A and B) and P(A or B)?

A: P(A and B) is the probability that both events occur in the same trial, while P(A or B) is the probability that at least one of them occurs. P(A and B) is the intersection of the two events; P(A or B) is the union.

Q: What is the probability of two heads in two coin tosses?

A: Two fair coin tosses are independent, with P(heads) = 0.5 on each toss. The joint probability is 0.5 × 0.5 = 0.25, or 25%, which is the same number the calculator returns with the default independent settings.

Q: How do I use this and probability calculator?

A: Pick the Event Type, type P(A) and P(B) as decimals between 0 and 1, and read the joint probability from the result panel. Switch to Dependent and add P(B|A) when the second event is affected by the first.