When flipping a coin, there are two possible outcomes: heads (H) or tails (T). When flipping the coin twice, we can determine the total combinations of outcomes. These combinations are: HH (both heads), HT (first flip heads, second tails), TH (first flip tails, second heads), and TT (both tails).
In total, there are 4 possible outcomes when flipping a coin twice. Now, out of these outcomes, only one of them results in both flips being heads (HH).
To find the probability, we use the formula:
Probability = (Number of favorable outcomes) / (Total number of outcomes)
In this case, the number of favorable outcomes is 1 (HH), and the total outcomes is 4 (HH, HT, TH, TT).
So, the probability of getting both heads when flipping a coin twice is:
Probability = 1 / 4 = 0.25
Thus, the probability of flipping a coin twice and getting both heads is 0.25, or 25%.