Quartic Equation Solver
Solve ax⁴ + bx³ + cx² + dx + e = 0 for all four roots — real or complex — using Ferrari's method.
- Nature
- Four real roots
- Root 1
- 4
- Root 2
- 1
- Root 3
- 3
- Root 4
- 2
How it works
This is the quartic sibling of this site's Cubic Equation Solver, one step further up the same ladder as the Quadratic Equation Solver. Dividing through by a and substituting x = y − B/4 (B = b/a) eliminates the x³ term, leaving a depressed quartic y⁴ + py² + qy + r = 0.
When the linear term vanishes (q = 0), the depressed quartic is a 'biquadratic' — substituting w = y² turns it into an ordinary quadratic in w, and each of its two roots gives y = ±√w directly.
Otherwise, Ferrari's method introduces an auxiliary value m chosen so the quartic splits into two ordinary quadratics. That m has to satisfy a cubic equation of its own (the 'resolvent cubic'), solved the same way this site's Cubic Equation Solver solves any real cubic — which always has at least one real root, so a valid m always exists. Once m is known, the two resulting quadratics are solved with the standard quadratic formula (using complex arithmetic, since the intermediate values can be complex even when the final roots turn out real), and shifting back by x = y − B/4 gives the quartic's four roots.
FAQ
Why do quartics sometimes have 0, 2, or 4 real roots, unlike cubics which always have at least one?
A quartic's graph goes to +∞ on both ends when a > 0 (or −∞ on both ends when a < 0), so unlike a cubic's graph — which is forced to cross zero by going from −∞ to +∞ — a quartic's graph can stay entirely on one side of the x-axis, dip down and come back up without crossing, or cross up to four times. That's why this calculator can report four real roots, two real roots plus one complex conjugate pair, or two complex conjugate pairs, but never exactly one or three real roots (complex roots of a real polynomial always come in conjugate pairs, so the real-root count is always even).
What does the 'biquadratic' shortcut mean, and when does it apply?
It applies whenever the depressed quartic's y term vanishes (q = 0) — which happens, for example, whenever the original equation has no x³ or x term relative to its own symmetry, like x⁴ − 5x² + 4 = 0. In that case the equation only involves x² and x⁴, so treating x² as a single unknown turns it into a quadratic, which is simpler and more numerically direct than the general resolvent-cubic route.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator
- Musical Note Frequency Calculator
- Dipole & Monopole Antenna Length Calculator
- Decibel (dB) Converter
- Elo Rating Calculator
- Beam Deflection Calculator
- Stellar Parallax Distance Calculator
- pH & pOH Calculator
- Poker Outs Odds Calculator (Texas Hold'em)
- Flywheel Kinetic Energy Calculator
- Voltage Divider Calculator (with Loading Effect)
- Wind Turbine Power Output Calculator
- Compound Gear Train Calculator
- Column Buckling Calculator (Euler's Critical Load)
- Henderson-Hasselbalch Buffer pH Calculator
- Capacitor Energy Storage Calculator
- CNC Speeds & Feeds Calculator
- Battery Runtime Calculator (Peukert's Law)
- Inductor Energy Storage Calculator
- Engine Compression Ratio Calculator
- Terminal Velocity Calculator
- Brewster's Angle Calculator (Polarizing Angle)
- Wheatstone Bridge Calculator
- Wien's Displacement Law Calculator
- Stefan–Boltzmann Law Calculator
- Young's Modulus (Elastic Modulus) Calculator
- Horizontal Cylindrical Tank Volume Calculator
- Solenoid Inductance Calculator
- Force Between Parallel Wires Calculator
- Pulley Belt Length & Speed Ratio Calculator
- 555 Timer Astable Frequency & Duty Cycle Calculator
- Buoyancy Calculator (Archimedes' Principle)
- Hydrostatic Pressure Calculator
- Tank Drain Time Calculator
- Op-Amp Slew Rate / Full-Power Bandwidth Calculator
- RL Circuit Time Constant Calculator
- Reverberation Time Calculator (Sabine Equation)
- Schwarzschild Radius Calculator
- Helmholtz Resonator Frequency Calculator
- Rayleigh Criterion (Diffraction Limit) Calculator
- Spring-Mass Oscillation Period Calculator
- Venturi Meter Flow Rate Calculator
- Darcy-Weisbach Pipe Friction Loss Calculator
- Critical Angle Calculator (Total Internal Reflection)
- Transformer Turns Ratio Calculator
- Area Moment of Inertia Calculator (Second Moment of Area)
- Numerical Aperture Calculator (Optical Fiber)
- Diffraction Grating Calculator
- Confidence Interval Calculator
- Arrhenius Equation Calculator
- Hagen-Poiseuille Flow Rate Calculator
- Shaft Torsion Calculator (Angle of Twist & Shear Stress)
- Series RLC Circuit Resonance Calculator
- Parallel RLC Circuit Resonance Calculator
- Projectile Motion on an Incline Calculator
- Parallel-Plate Capacitor Calculator
- Rocket Equation Calculator (Tsiolkovsky Delta-v)
- Photoelectric Effect Calculator
- Op-Amp Gain Calculator (Inverting & Non-Inverting)
- Stokes' Law Settling Velocity Calculator
- Bolt Preload Calculator (Torque to Clamp Force)
- Gravitational Force Calculator (Newton's Law of Gravitation)
- Banking Angle Calculator (Curve Superelevation)
- Springs in Series and Parallel Calculator
- Freezing Point Depression / Boiling Point Elevation Calculator
- Redshift to Velocity Calculator
- Lensmaker's Equation Calculator
- Combined Gas Law Calculator
- Angular Momentum Conservation Calculator
- LED Series Resistor Calculator
- Sample Size Calculator (Margin of Error)
- Lorentz Force Calculator (Magnetic Force on a Moving Charge)
- Drag Force Calculator (Aerodynamic / Fluid Drag)
- Exposure Value (EV) & Equivalent Exposure Calculator
- Hydraulic Press Calculator (Pascal's Law)
- Clausius-Clapeyron Equation Calculator
- Modular Inverse Calculator
- Specific Heat (Q = mcΔT) Calculator
- Bayes' Theorem Calculator (Diagnostic Test Accuracy)
- Euler's Totient Function Calculator
- Graham's Law of Effusion Calculator
- Wye-Delta (Y-Δ) Transformation Calculator
- Chinese Remainder Theorem Calculator
- Synodic Period Calculator
- Mach Number Calculator
- Cable Sag Calculator
- Linear Thermal Expansion Calculator
- Lever Mechanical Advantage Calculator
- Nernst Equation Calculator
- Linear Diophantine Equation Solver