Petrolia is located in eastern Butler County at (41.017964, -79.718204),[REF] in the valley of the South Branch of Bear Creek, a tributary of the Allegheny River.
Pennsylvania Route 268 passes through the borough, leading north 3mi to Bruin and south to Karns City.