I recently learned in school that the gravitational potential energy of an object is equal to $mgh$. I also learned that the kinetic energy of an object is $\frac12 mv^2$. If an object falls in a vacuum, it will convert all of its gravitational potential energy to kinetic energy before hitting the floor. Therefore, $$mgh = 1/2mv^2$$ $$gh = 1/2v^2$$ If $g = 10 N/kg$ on a planet then to reach the speed of light: $h = 1/20c^2$
If an object were dropped from this height I assume it would not reach the speed of light. I think this is because $g$ would get smaller as you went further away. I found out that $F = \frac {Gm_1m_2}{r^2}$ and that the weight of something is $F = m_2g$. Therefore, $g =\frac {Gm_1}{r^2}$. If instead of having $g = 10 N/kg$ on the surface, if $g = 10 N/kg$ at that height then $10 =\frac {Gm_1}{(c^2/20)^2}$. Therefore, the mass of the planet would be $m_1 = c^4/(40G)$.
So, if you dropped something from a height of $c^2/20$ in a vacuum (although unreasonably large) on a planet with mass $c^4/40G$, surely it would accelerate fast enough to reach the speed of light? As it fell, $g$ would only increase so why wouldn't it become faster than light? What have I done wrong? Thanks