How the math works
Filament is a cylinder. Volume per metre = π × (d/2)² × 100 cm. Multiply by density (g/cm³) to get grams per metre. Divide weight by grams-per-metre for length, or multiply length by it for weight.
1.75 mm PLA ≈ 2.98 g/m, so a typical 1 kg spool holds about 335 m. 2.85 mm PLA ≈ 7.91 g/m — about 126 m per kg.