Minimum Spanning Tree Calculator
Find a minimum spanning tree of a weighted graph with Kruskal's algorithm.
Find a minimum spanning tree of a weighted graph with Kruskal's algorithm.
Results
Enter your details and click Calculate to see your results.
About This Calculator
Sort edges by weight and add each one that doesn't form a cycle.
Example
Example: the default inputs → Total Weight: Minimum spanning tree weight 13.
Assumptions
Exact maths — check the input format shown in each field.
Frequently Asked Questions
What is a minimum spanning tree?
The cheapest set of edges connecting every node with no cycles.
Kruskal or Prim?
Both give a minimum tree; Kruskal suits sparse graphs.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile