Black and Hispanic students in New York have narrowed the achievement gap with their white peers in fourth- and eighth-grade math in recent years, according to a new analysis.

The racial-achievement gap also narrowed in eighth-grade reading between black and Hispanic students and their white classmates from 2006 to 2008, according to the report by the Center on Education Policy advocacy group.

The longstanding racial-achievement gap — which the report shows generally narrowing nationwide — has received significantly more attention in the past decade, particularly as better data systems have revealed the extent of the problem.

“The country has tried to address the achievement gap for better than 10 years now,” said CEP President Jack Jennings. “All that now seems to be bearing fruit.”

While significant, the narrowing of the gap in New York showed plenty of room for improvement.

For example, the mean scale score difference between black and white students in eighth grade reading was still at 25 points on an 800-point scale last year — down from a 30-point difference in 2006.

Additionally, the reading gap between black and white students in fourth grade didn’t budge over those years, and even grew slightly between Hispanic students and white kids.

Most troubling, the gap between low-income students and the rest of their peers went totally in the wrong direction since 2006 — widening in both grades and subjects through last year.