Explanation of calculating equilibrium constant Hydrogen iodide is a colourless gas that will decompose into colourless hydrogen gas and purple iodine gas according to the following endothermic reaction.
  
  $$\ce{2 HI (g) &lt;=&gt; H2 (g) + I2 (g)}$$
  
  A $\pu{1.0 L}$ glass container was filled with $\pu{0.60 mol}$ of hydrogen iodide gas. When equilibrium was established, there were $\pu{0.25 mol}$ of iodine gas present in the container. Calculate the equilibrium constant for this reaction. 
  $$
\begin{array}{|c|c|c|c|}\hline
&amp;\ce{HI}&amp;\ce{H2}&amp;\ce{I2}\\\hline
\text{Initial}&amp;0.60&amp;0&amp;0\\\hline
\text{Used/made}&amp;0.50&amp;0.25&amp;0.25\\\hline
\text{Equilibrium}&amp;0.10&amp;0.25&amp;0.25\\\hline
\end{array}
$$
  $$K=\frac{[\ce{H2}][\ce{I2}]}{[\ce{HI}]^2}=\frac{0.25\times0.25}{0.10^2}=6.25$$


This is what I understand:


Product always goes on the top, reactant on bottom
Balancing coefficients eg $\ce{2HI}$ become powers $\ce{-&gt; HI^2}$
Initially, 0.6 moles of hydrogen iodide gas was placed, then at equilibrium 0.25 moles of iodine gas.
If there was 0.25 moles of iodine gas, there has to be 0.25 moles of hydrogen gas aswell thus the top part of the fraction becomes $0.25 \times 0.25$
I have no idea where the 0.1 moles come from …


I don't want to 'understand' these as much as I just want to be able to do them.
Your reasoning is correct. Initially, you saw that there was no iodine in the vessel. After reaching equilibrium, you saw 0.25 mol. Where did this come from? 

Answer: Hydrogen iodide broke down to form this iodine and hydrogen. How much hydrogen iodide? Well this is a super simple moles problem. 

0.25 moles of iodine was formed, and the mole ratio for $\ce{HI:I_2}$ is $2:1$. For 0.25 moles of iodine to be formed, 0.5 moles of hydrogen iodide must have been used (just look at your balanced equation).

If 0.5 moles of hydrogen iodide was used, how much hydrogen iodide is left? 0.60 moles minus 0.50 moles to leave 0.10 mol. 

Then, as you did correctly, you plug it into the $K_c$ formula. 



While you have stated that you just want to know how to do it (which you should be able to now), it is useful to know what's going on. Basically, the $K_c$ is a measure of where the equilibrium is. If your $K_c$ value is high, there will be a higher concentration of the products at equilibrium.