Tree Diagram Calculator
Picking two items from a bag, with or without replacement? Enter what is in the bag to see the probability tree diagram drawn, with every branch probability and outcome worked out step by step.
A bag contains two kinds of item. Two are picked at random.
Is the first item put back?
Probabilities
P(both Red)
3/10
P(both Blue)
1/10
P(same)
2/5
P(one of each)
3/5
P(at least one Red)
9/10
How it works
First pick
There are 5 items: 3 Red and 2 Blue. P(Red) = 3/5, P(Blue) = 2/5.
Second pick
The first item is not put back, so there are 4 items left and one fewer of whatever was picked first.
Multiply along the branches
P(Red, Red) = 3/5 × 2/4 = 6/20 = 3/10. P(Red, Blue) = 3/5 × 2/4 = 6/20 = 3/10. P(Blue, Red) = 2/5 × 3/4 = 6/20 = 3/10. P(Blue, Blue) = 2/5 × 1/4 = 2/20 = 1/10.
Add the outcomes you need
P(one of each) = P(Red, Blue) + P(Blue, Red) = 3/5. P(at least one Red) = 1 − P(both Blue) = 9/10. All four outcomes add up to 1.
Result:P(same) = 2/5
Combining probabilities
Example substitution
3 red and 2 blue, without replacement: after one red there are 2 reds left out of 4.
Worked examples
A bag has 3 red and 2 blue counters. Two are taken without replacement. Find P(both red).
- 1First red: 3/5
- 2Second red (one fewer): 2/4
- 3Multiply: 3/5 × 2/4 = 6/20
Same bag, with replacement. Find P(one of each colour).
- 1Red then blue: 3/5 × 2/5 = 6/25
- 2Blue then red: 2/5 × 3/5 = 6/25
- 3Add: 6/25 + 6/25
Frequently asked questions
How do you use a tree diagram?+
Write the probabilities on each branch. Multiply along the branches to get the probability of each combined outcome, then add the outcomes you need.
What is the difference between with and without replacement?+
With replacement, the first item is put back, so the second pick has the same probabilities. Without replacement, there is one fewer item, so the second-pick probabilities change.
Why do you multiply along the branches?+
Because you want both events to happen: first this AND then that. "And" means multiply. "Or" means add the separate outcomes.
How do you find the probability of at least one?+
Use 1 − P(none). For at least one red, work out P(no reds) — both picks blue — and subtract it from 1.
How can you check a tree diagram?+
The branches from each point add up to 1, and all the final outcome probabilities add up to 1.