The Lyft Driver Hub is seen in Los Angeles, California, U.S., March 20, 2019.The Lyft Driver Hub is seen in Los Angeles, California, U.S., March 20, 2019.

The company is adding a surcharge to help drivers deal with high gas prices.

The fees will go to drivers who fill up their own tanks. The company did not say how much more riders would have to pay. The rising gas prices are taking away from the earnings of the drivers. Some have called on the ride-sharing companies to ease the burden, while others have threatened to quit.

The fees are in response to the rapid rise in gas prices due to Russia's invasion of Ukraine. The national average for a gallon of gas on Monday was $4.325. The average for the year was $2.859.

The surcharge on fares and deliveries in the U.S. and Canada will be in place for at least two months.

The company said that riders will pay a fee for each trip. A surcharge of between $0.35 and $0.45 will be included in the delivery.

In the past two months, there has not been a decrease in the number of drivers.

Laura Batchelor contributed reporting.

You can subscribe to CNBC on the internet.