Step 1: Find total outcomes.
When three coins are tossed, total outcomes are
\[
2^3=8.
\]
Step 2: Understand “at most two heads”.
At most two heads means number of heads can be
\[
0,\quad 1,\quad 2.
\]
The only case not allowed is getting \(3\) heads.
Step 3: Count favourable outcomes.
Total outcomes \(=8\).
Unfavourable outcome is
\[
HHH.
\]
So, favourable outcomes are
\[
8-1=7.
\]
Step 4: Find the probability.
\[
P(\text{at most two heads})
=
\frac{7}{8}.
\]
Step 5: Final conclusion.
Therefore,
\[
\boxed{\frac{7}{8}}
\]