Fredericksburg is an independent city in Virginia, United States. As of the 2020 census, the population was 27,982. It is 48 miles south of Washington, D.C., and 53 miles north of Richmond.