According to the United States Census Bureau, the town has a total area of 2.3 square miles (5.9 km2), of which 2.2 square miles (5.8 km2) is land and 0.04 square mile (0.1 km2) (1.32%) is water.
As of the 2020 United States census, there were 3,347 people, 1,248 households, and 892 families residing in the town.
Education
Public schools in Richland Parish are operated by the Richland Parish School Board. Three campuses serve the town of Rayville - Rayville Elementary School (Grades PK-6), Rayville Junior High School (Grades 7-8), and Rayville High School (Grades 9-12). Rayville is also served by Riverfield Academy (Grades PK-12) a non-denominational private school.