ℹ️ Preview calculator: calculation logic is still being verified. Output may not reflect realistic engineering values. Details

Spanning Tree Path Cost Calculator

Calculate STP path cost per IEEE standards with multi-hop support

802.1D uses legacy short path costs (16-bit). 802.1w RSTP and 802.1s MSTP use long path costs (32-bit) with finer granularity for high-speed links.
Add each link in the path. Total path cost is the sum of all hop costs. STP root path cost determines the root port.

Path Cost Results

Total Path Cost
Number of Hops

IEEE Path Cost Reference Table

Link Speed802.1D Cost802.1w/s Cost
References:
IEEE 802.1D-2004 - MAC Bridges
IEEE 802.1w - Rapid Spanning Tree Protocol
IEEE 802.1s - Multiple Spanning Tree Protocol