The Frederick and Pennsylvania Line railroad ran from Frederick, Maryland to the Pennsylvania-Maryland State line, or Mason–Dixon line near Kingsdale, Pennsylvania consisting of 28 miles (45.1 km) of center-line track and 29.93 miles (48.17 km) of total track including sidings. Chartered in 1867, the railroad started construction in 1869 and cost $868,687.50.