When a coin is tossed twice, the total number of possible outcomes in the sample space is four: HH, HT, TH and TT. Getting two consecutive heads corresponds to only one favorable outcome, which is HH. By the classical definition of probability, the probability is the number of favorable outcomes divided by the total outcomes. The probability is 1 divided by 4.