Paying the square of the number of heads

Ten fair coins are tossed, and the payout is the square of the number of heads. What stake makes the game fair, in the sense that the expected profit is zero?

Let X\sim\operatorname{Bin}(10,1/2). The payout is X^2, and

\mathbb{E} X^2=\operatorname{Var}(X)+(\mathbb{E} X)^2=10\cdot\tfrac12\cdot\tfrac12+5^2=2.5+25=27.5.

A stake of 27.5 makes the expected profit zero. Any smaller stake has positive expected profit for the player.