# Why is light affected by gravity even though it is massless? [duplicate]

Why is light affected by gravity even though it is massless?

## marked as duplicate by Jon Custer, M. Enns, ZeroTheHero, Kyle Kanos, John Rennie gravity StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Aug 10 '17 at 4:01

Also, notice the equation $E=mc^2$ is only a special case of the original relativistic energy-momentum relation equation when the object has zero momentum, that is - its velocity is zero: $$E^2=(mc^2)^2+(pc)^2$$
Where $p$ is momentum so when a non zero rest mass object is at rest, $p=0$ and it simplifies to $E=mc^2$.
Now, for photons/light they have zero rest mass($m=0$) but they do have a value for momentum. So thus then the energy of a photon from the equation becomes: $$E=pc$$ So then the correct relation comes like: $$E=hf=pc$$ $$p=\frac{hf}{c}$$ Thus, So finally we can say that the photon can have energy even though it does not have mass, because it has momentum. Thus it is in reality that objects with energy are influenced by space-time curvature. So since light has energy(so it has momentum) so it's effected by spacetime curvature.