Weight (g) = Filament Length (m) × π × (Diameter (mm) / 2)² × Density (g/cm³) × 1000
Cost ($) = Weight (g) × Spool Price ($)
Example 1: 1m of 1.75mm filament with density 1.24g/cm³ and spool price $10
Weight: 124g, Cost: $1.24
Example 2: 2m of 1.75mm filament with density 1.24g/cm³ and spool price $10
Weight: 248g, Cost: $2.48
Example 3: 0.5m of 1.75mm filament with density 1.24g/cm³ and spool price $10
Weight: 62g, Cost: $0.62