When 4 coins are tossed, the total number of possible outcomes is \( 2^4 = 16 \). The number of outcomes with 0, 1, or 2 heads can be found using the binomial distribution:
- Number of outcomes with 0 heads: \( \binom{4}{0} = 1 \)
- Number of outcomes with 1 head: \( \binom{4}{1} = 4 \)
- Number of outcomes with 2 heads: \( \binom{4}{2} = 6 \)
Thus, the total number of outcomes with at most 2 heads is \( 1 + 4 + 6 = 11 \). The probability is:
\[
P(\text{at most 2 heads}) = \frac{11}{16}
\]