Suppose you have a fair coin, this means that it has a 50% chance of getting heads and a 50% chance of getting tails.
When you toss a coin, the possible outcomes are:
1. Heads
2. Tails
The total number of outcomes are therefore two.
Hence,
P(heads) = 1/2