Table of Contents

Is Cast Iron Magnetic? Properties, Types, and Practical Uses

cast iron magnetic attraction

Is cast iron magnetic? Yes—most cast iron is magnetic and attracts a magnet. Common types, including gray and ductile cast iron, generally show this behavior. However, certain austenitic cast irons can be essentially nonmagnetic, so you cannot assume every grade responds the same way.

If you are choosing cast iron for a machined component, checking an existing part, or considering magnetic workholding, these differences matter. A magnet can give you a quick indication of magnetic behavior, but it cannot reliably identify the grade or confirm suitability for your application.

In this guide, you will learn what affects cast iron’s magnetism, how common types differ, and what these properties mean for practical uses and CNC machining.

What Is Cast Iron?

cast iron materials and components
cast iron stock and component shapes, not grade identification

Cast iron is a family of iron–carbon alloys, typically containing about 2–4% carbon and 1–3% silicon by weight. If you are selecting it for a component, the type matters: its properties depend on both its chemical composition and its internal structure.

Depending on the grade and processing conditions, carbon appears mainly as graphite flakes, graphite nodules, or iron carbides. The surrounding metallic matrix can contain ferrite, pearlite, or austenite. These structural differences affect strength, brittleness, machinability, and magnetic behavior—which is why different cast irons do not all respond to a magnet in the same way.

Types of Cast Iron and Their Magnetic Properties

Most common cast irons are magnetic at room temperature, but their response depends on the grade and metallic matrix. Gray, ductile, white, and malleable cast irons generally attract a magnet. Austenitic cast irons are an important exception: certain grades are essentially nonmagnetic.

Cast iron typeRepresentative grades or specificationsTypical microstructureMagnetic behavior at room temperature
Gray cast ironASTM A48 Class 30 and Class 40Graphite flakes in a ferritic, pearlitic, or mixed matrixGenerally magnetic; the matrix and graphite distribution affect its magnetic properties.
Ductile cast ironASTM A536 65-45-12 and 80-55-06Graphite nodules in a mainly ferritic or mixed ferritic–pearlitic matrixGenerally magnetic. Ferritic grades typically magnetize more readily than predominantly pearlitic grades.
White cast ironUnalloyed white iron; high-chromium grades covered by ASTM A532Iron or alloy carbides in a matrix that varies with composition and heat treatmentOften magnetic, but alloyed grades can respond differently, particularly when substantial austenite is present.
Malleable cast ironASTM A47 Grade 32510; pearlitic grades covered by ASTM A220Temper-carbon particles in a ferritic or pearlitic matrixGenerally magnetic; its response varies with matrix structure and heat treatment.
Austenitic cast ironNi-Resist Type 1; grades covered by ASTM A436 and ASTM A439Flake or nodular graphite in a nickel-stabilized austenitic matrixCertain grades are essentially nonmagnetic; confirm the specified grade’s magnetic properties.

Representative grades identify common examples; a specification alone does not establish an exact magnetic response.

If your application requires low magnetic permeability, request grade-specific data and define an acceptance limit rather than relying on the cast iron family name.

Why Is Cast Iron Magnetic?

Most cast iron is magnetic because its iron-rich matrix contains ferromagnetic phases. In ferrite, groups of atomic magnetic moments align within regions called magnetic domains. When you bring a magnet close, these domains can reorient or grow in the field’s direction, producing magnetic attraction.

The matrix structure matters. Ferrite is ferromagnetic at room temperature, and pearlite contains ferrite alongside cementite. These structures help explain why common gray and ductile cast irons attract a magnet. By contrast, a stable austenitic matrix can make certain alloyed cast irons essentially nonmagnetic.

Graphite does not create this attraction. It is diamagnetic, meaning it responds weakly against an applied magnetic field. Its flakes or nodules interrupt the magnetic matrix and influence how the material magnetizes, but their shape alone cannot tell you whether a casting is magnetic. You need to consider the surrounding matrix, alloy composition, and material condition together.

How Can You Test Whether Cast Iron Is Magnetic?

cast iron magnet test
checking a cast iron flange with a handheld magnet

Does a magnet stick to cast iron? For most common grades, yes. You can use a handheld magnet to check whether your part shows noticeable attraction. For a useful comparison, keep the magnet and testing conditions consistent.

  1. Choose a suitable magnet. First, check that it attracts a known piece of carbon steel.
  2. Prepare the test area. Remove loose dirt, oil, rust, and metal particles. If possible, use an exposed metal surface without damaging a protective coating.
  3. Bring the magnet close slowly. Check for attraction, then let it contact the surface. Test several locations, especially on assemblies containing different materials.
  4. Consider the contact conditions. Curved surfaces, rough casting texture, thick coatings, and gaps can reduce the apparent pull. Part thickness and magnet strength also affect the result.

Paint or a coating can keep the magnet away from the underlying metal, making attraction harder to detect. Steel inserts, fasteners, or attached components can also produce a local response that does not represent the casting itself.

A magnet test cannot confirm the cast iron type, grade, strength, or machining suitability. It also cannot reliably distinguish cast iron from carbon steel, since both commonly attract magnets. If you detect no attraction, check the setup before assuming the material is nonmagnetic. For material identification, review the material certificate; for a specified magnetic requirement, use an appropriate measurement method and acceptance limit.

Cast Iron vs. Other Metals: A Magnetic Comparison

Cast iron, pure iron, and carbon steel generally attract magnets, while stainless steel’s response depends on its structure and condition. When you compare materials, check the specific grade and heat treatment rather than relying on the metal’s name alone.

MaterialRepresentative grades or conditionsTypical magnetic behavior at room temperatureWhat you should consider
Cast ironGray and ductile iron with ferritic or pearlitic matricesGenerally magneticAustenitic cast iron grades can be essentially nonmagnetic. Graphite and matrix structure affect the response.
Pure ironHigh-purity iron in an annealed conditionFerromagnetic; readily magnetizedPurity, residual stress, and annealing affect permeability and how easily it loses magnetization.
Carbon steelAISI 1018 or 1045 in common room-temperature conditionsGenerally magneticCarbon content, heat treatment, and microstructure affect magnetic properties and retained magnetism.
Ferritic stainless steelType 430MagneticIts ferritic matrix produces attraction despite its chromium content.
Martensitic stainless steelTypes 410 and 420 in hardened conditionsMagneticHeat treatment changes the structure and magnetic response; hardness does not directly indicate magnetic pull.
Austenitic stainless steelTypes 304 and 316 in a solution-annealed conditionGenerally essentially nonmagneticCold working can produce magnetic martensite, particularly in less stable austenitic grades.
Duplex stainless steelDuplex 2205MagneticIts ferrite phase produces attraction even though the structure also contains austenite.

These are qualitative descriptions, not a ranking of magnetic strength. Actual results depend on the material condition, part geometry, and test setup.

What Factors Affect Cast Iron’s Magnetism?

Cast iron’s magnetic behavior depends mainly on its metallic matrix, alloy composition, and temperature. Heat treatment can change that behavior by altering the internal structure. However, a weaker pull during a magnet test does not always mean the material itself has become less magnetic.

FactorHow it affects magnetic behaviorWhat it means for your part
Matrix structureFerrite is ferromagnetic at room temperature. A pearlitic matrix also contains magnetic phases, while a stable austenitic matrix can be essentially nonmagnetic.Two cast irons can respond differently even when both contain graphite. Check the matrix and grade.
Alloying elementsElements such as nickel, manganese, and chromium can change the balance of ferrite, austenite, and carbides. Their effect depends on composition and processing.Do not assume that adding a particular element always increases or decreases magnetism.
Graphite content and distributionGraphite interrupts the magnetic matrix. Its amount, shape, and distribution influence permeability and the way the material magnetizes.Flakes or nodules alone cannot establish a casting’s magnetic performance.
TemperatureFerromagnetic phases lose their ferromagnetism above their Curie temperatures. The transition depends on the phases and alloy composition.Room-temperature magnet tests do not establish magnetic behavior at operating temperature.
Heat treatmentAnnealing, hardening, and other treatments can alter the matrix, carbide distribution, and residual stress.The same nominal grade may have different magnetic properties after different treatments.

Separate these material effects from the conditions of your magnet test. Paint, rust, surface roughness, and curvature can create gaps that reduce attraction. Magnet strength, part thickness, and contact area also affect the pull you feel. These conditions change the observed result without necessarily changing the cast iron’s underlying magnetic properties.

For a meaningful comparison, use the same magnet on similarly prepared surfaces and comparable part geometries. If magnetic performance is a design requirement, specify a measurable property and test conditions rather than relying on attraction alone.

What Does Cast Iron’s Magnetism Mean for CNC Machining?

cast iron cnc milling
cast iron housing in a CNC machining setup

Cast iron’s magnetism mainly affects how you hold and clean a part during machining. When planning CNC machining, consider these requirements alongside geometry and tolerances. It does not, by itself, determine machinability: hardness, carbides, and the matrix structure have a more direct influence on cutting performance.

Choosing a Workholding Method

For suitable cast iron parts, a magnetic chuck can leave more surfaces accessible to the cutting tool and reduce interference from clamps. However, attraction alone does not guarantee secure workholding. The grade, contact area, part thickness, surface condition, and cutting forces all matter. Rough cast surfaces or thin sections may require a different fixture or additional support.

Managing Residual Magnetism and Chips

If your part retains magnetism after magnetic workholding or inspection, it can attract ferrous chips and fine particles. These particles can collect in holes, threads, and mating surfaces, making cleaning more difficult. Debris trapped beneath a part or against a measuring surface can also interfere with seating and inspection.

Where residual magnetism matters to the final assembly, include an acceptance limit and measurement method in your drawing or inspection requirements. Demagnetization may be needed before final cleaning and inspection. Discuss any special magnetic measurements as part of your quality assurance requirements before ordering.

When you discuss your cast iron component with YD Rapid, provide the material grade, drawing, quantity, and critical surfaces. Flag any residual-magnetism or cleanliness requirements early so they can be considered when planning workholding, cleaning, and inspection.

FAQs

How Can You Tell Cast Iron from Steel?

Start with the material certificate, drawing specification, or casting identification marks. Appearance and a magnet test alone are inconclusive. If documentation is unavailable, a qualified laboratory can use chemical analysis and metallographic examination to distinguish graphite-containing cast irons from steel. Specify the required confidence before choosing an identification method.

Are Cast Iron Pipes Magnetic?

Most conventional gray cast iron pipes and ductile iron pipes attract a magnet at room temperature. However, coatings, corrosion, and access to the pipe wall can affect the test. Attraction alone cannot distinguish cast iron pipe from steel pipe or establish the pipe’s condition, pressure rating, or suitability for reuse.

Is Cast Steel Magnetic, and How Is It Different from Cast Iron?

Most carbon and low-alloy cast steels are magnetic at room temperature, while certain austenitic cast steels can be essentially nonmagnetic. “Cast” describes how the component is formed; it does not establish its magnetic properties. Cast steel generally has a lower carbon content than cast iron, so both materials can attract a magnet despite their different compositions and structures.

Conclusion

Most cast iron is magnetic, but the type and matrix structure matter. Common gray, ductile, white, and malleable cast irons generally attract a magnet, while certain austenitic grades can be essentially nonmagnetic. A magnet test offers a quick check of attraction, but it cannot confirm the material grade or suitability for your part.

For your next cast iron CNC machining project, request a machining quote from YD Rapid with your drawing, material grade, and required quantity. Include any magnetic or cleanliness requirements so these can be considered during the project review.

 

Manufacturing Processes

Ready to Turn Your Design Into Precision Parts?

Upload your CAD file and receive a free DFM review, competitive pricing, and a detailed quotation within 24 hours.

Request a Quote

Upload your CAD files and receive a quotation within 12 business hours.