When does equality in Markov's inequality occur? Markov's inequality states that given any nonnegative random variable and $a&gt;0$ then we have: 
$$P(X \geq a) \leq \frac{E(X)}{a}$$
At which $a$ is equality supposed to hold?
First assume $a$ is finite, otherwise the result is trivial. Define the random variable $Y_{a}=X-a1_{\{X \geq a\}}$, where $$1_{\{X \geq a\}}=
\begin{cases}
1, \:\text{if}\; X\geqslant a\\
0, \:\text{if}\; X&lt; a
\end{cases}.$$

Observe that $Y_a$ is non-negative. Taking the expectation yields $$E(Y_a)=E(X)-aP(X \geq a).$$

Hence Markov's inequality holds with equality if and only if $E(Y_a)=0$. Since $Y_a$ is non-negative, this is equivalent to $P(Y_{a}=0)=1$. Note that $Y_{a}=0$ if and only if $X=0$ or $X=a$.

Therefore, Markov's inequality holds with equality if and only if $P(X\in\{0,a\})=1$.
You get equality when $X$ is a random variable that takes on value $a$ with probability $1$. For any non-constant non-negative random variable, you will always have $P(X \geq a) &lt; E(X)/a$ because the quantity $a P(X \geq a)$ is less than or equal to a strict partial contribution to the expectation $E(X)$.