The most powerful oil rally in seven years pushed crude prices above $50 a barrel on Thursday, a level that eases pressure on producers while being low enough to keep consumers happy at the gas pump.

Crude prices briefly rose above $50 a barrel in intraday trading Thursday, a level they haven’t reached since October, before easing Friday, continuing a jagged rise over the last three months.

A...