The city is rolling out the green carpet for cyclists.

The Department of Transportation announced Wednesday that it is re-timing traffic lights along some streets so they turn green in sync with the speed of bike riders — rather than the pace of drivers.

The so-called “green wave” program, which has already been quietly introduced on two bike-heavy streets in Brooklyn, is designed to let pedal-pushers glide seamlessly through a succession of green lights if they’re moving at the average riding speed of 15 mph — while drivers will see red if they go any faster than that.

“It makes it a lot more comfortable and enjoyable for cyclists,” DOT Commissioner Polly Trottenberg said during a press conference in East New York on Wednesday.

Last December, the DOT says, it re-timed the traffic lights along Hoyt and Bond streets between Schermerhorn and Baltic streets in Boerum Hill to cater to cyclists.

The lights on those streets were previously timed to change at the maximum car speed of 25 mph.

Asked about the impact on drivers, DOT spokeswoman Alana Morales said: “If the car is traveling at the same speed as the bikes, 10 to 15 miles per hour, they’ll catch the same signals as the bikes.”

According to the city, the pilot program has already yielded “positive results,” with more riders following traffic light laws and more bikers using the stretches, including an average of more than 500 cyclists per hour during rush hours — often outnumbering cars.

Vehicle speeds slowed slightly on Hoyt Street and remained the same on Bond Street, according to the city, which said traffic volume remained constant and did not spill over to adjacent streets.

The DOT said it will now give the “green wave” treatment to three more popular bike routes in the next year: Clinton Street in Brooklyn Heights, 43rd Avenue in Sunnyside, Queens, and Prince Street in Manhattan’s Soho.

Trottenberg says the DOT will look for even more routes to add.

The announcement of the “green wave” measures comes after a staggering 25 cyclists have been killed so far this year on city streets.

During the press conference, city transportation officials also cut the ribbon on the 100th mile of protected bike lanes constructed under the de Blasio administration — along Fountain Avenue in East New York.

Transit officials also announced the city would complete other major protected bike lane projects in Brooklyn by the end of the year along Fourth Avenue between 15th and 60th streets in Sunset Park, Shore Parkway between Bay Parkway and Bay 53rd Street in Bath Beach, and Seventh Avenue between 65th and 84th streets in Bay Ridge.