Modal Analysis in Ansys Workbench: Setup, Theory and a Worked Cantilever
Modal analysis finds a part's natural frequencies and mode shapes from the eigenvalue problem of its stiffness and mass matrices. We explain participation factor and effective mass, walk through the Ansys Workbench Modal setup against Ansys's own help, check a steel cantilever (50.96, 319.37 and 894.24 Hz) with hand theory and a Python FE convergence study, and cover the common mistakes, pre-stressed modal and when to move on to harmonic or random vibration.

A modal analysis in Ansys Workbench finds the natural frequencies and mode shapes of a part. It does this by solving the eigenvalue problem for the meshed model, with no loads applied, only supports. You add a Modal system, give the material a density, mesh it, fix it the way it is really held, set Max Modes to Find (default 6) and solve. The frequencies appear in the Tabular Data and each mode shape is a Total Deformation plot. For a 400 mm steel cantilever, the first three bending frequencies come out at 50.96, 319.37 and 894.24 Hz, and we check those numbers below with hand theory and our own finite element (FE) code.
This guide is for students and freshers who can run a static analysis in Ansys Mechanical and now need to do vibration work. The Workbench steps are checked against Ansys's own 2026 R1 help.
In short
- Ansys Mechanical's Modal analysis finds the first 6 natural frequencies by default (Max Modes to Find), and treats the model as linear: contacts keep the status they start with and nonlinear material data is ignored (Ansys Mechanical User's Guide and Contact Technology Guide, 2026 R1).
- Mode shape magnitudes are arbitrary. Ansys's help says deformation and stress values from a modal run are "meaningless" in absolute terms; only their relative distribution counts.
- Worked steel cantilever, 400 × 30 × 10 mm: Euler-Bernoulli theory gives 50.96, 319.37 and 894.24 Hz. Our Python beam-element FE model gets mode 3 within 1% with 4 elements and within 0.061% with 8 (Skill-Lync calculation, 1 Dec 2026).
- The first mode carries 61.3% of the beam's mass in the bending direction. You need 5 modes before the cumulative effective mass passes 90%.
- For a downstream random vibration or mode-superposition harmonic run, Ansys recommends extracting modes up to 1.5 times the highest excitation frequency.
What is modal analysis in Ansys?
Modal analysis is a linear, free-vibration analysis that tells you at which frequencies a structure naturally vibrates (natural frequencies) and in what pattern (mode shapes). Ansys describes it as the way to determine "the vibration characteristics" of a structure and the starting point for transient, harmonic and spectrum analyses. You apply supports but no time-varying loads.
Take the equation of motion of the meshed model with no damping and no external force:
Here is the stiffness matrix and is the mass matrix, each with one row per free degree of freedom (DOF). Try a solution in which every node moves in step, . The time terms cancel and you are left with the generalised eigenvalue problem that every modal solver, including Ansys's Block Lanczos, solves:
Each eigenvalue gives a natural circular frequency in rad/s; Ansys reports in Hz. Each eigenvector is a mode shape. A model with free DOFs has such pairs, but only the lowest ones matter, and only they are accurate.
Two consequences follow. Frequency scales as , so an error in either matrix shifts every frequency. And no load vector appears, so forces and pressures do not change the frequencies; Ansys's help says load vectors generated in a Modal analysis "do not affect natural frequencies or mode shapes". Loads matter only when they pre-stress the part.
If the matrices are new to you, unit 18 of our free finite element analysis book builds them from a bar element; it maps to the dynamics unit of the FEA syllabus at Anna University (CME367 Unit IV) and VTU (BME701 Module 5).
What is the difference between natural frequency, mode shape, participation factor and effective mass?
A natural frequency is how fast a mode oscillates, a mode shape is the pattern of relative motion, the participation factor says how strongly a given direction of base shaking excites that mode, and effective mass is the share of the structure's mass that moves with that mode in that direction. Ansys reports all four after a modal solve.
| Quantity | What it tells you | Where Ansys shows it |
|---|---|---|
| Natural frequency (Hz) | The frequency at which mode vibrates freely. Excite the part near it and the response grows sharply (resonance). | Bar chart and Tabular Data on the Solution object |
| Mode shape | The deformed pattern, with still points (nodes) and moving regions. Scale is arbitrary. | Total Deformation (or Directional Deformation) result for a chosen mode |
| Participation factor | How much a uniform motion in X, Y, Z (or rotation about them) excites mode . Its sign is arbitrary. | Solution Information, Solution Output set to Participation Factor Summary |
| Effective mass | The mass that responds in mode to base shaking in that direction. Summed over all modes it approaches the total mass. | Same worksheet: Effective Mass, Cumulative Effective Mass Fraction, Ratio of Effective Mass to Total Mass |
The participation factor for direction (a vector with 1 on every DOF in, say, the Y direction and 0 elsewhere) and the effective mass are defined in the Ansys Theory Reference as:
The last step holds when each mode shape is mass-normalised, , which is why the Ansys Structural Analysis Guide says "the modal effective mass is equal to the participation factor squared". Watch the ratio of effective mass to total mass: a mode with a large ratio responds strongly when the supports shake; a torsion mode under vertical shaking has a ratio near zero and barely responds.
Mode shapes trip up almost every beginner. Ansys's help states that a modal solution "consists of a deformed shape scaled by an arbitrary factor" and that absolute deformations and stresses "are therefore meaningless". A modal plot showing 400 mm of deflection and 2,000 MPa has not failed. Read the shape and where the peaks and nodes are, never the legend.
How do you set up a modal analysis in Ansys Workbench?
In Workbench, add a Modal analysis system to the Project Schematic, define a material with stiffness and density in Engineering Data, attach the geometry, mesh it in Mechanical, apply the real supports, set Max Modes to Find under Analysis Settings, solve, then read the frequencies from the Solution object and plot each mode shape. The steps below follow the Modal Analysis section of the Ansys Mechanical User's Guide, 2026 R1.
- Engineering Data. Ansys's help puts the requirement plainly: you must "define stiffness as well as mass in some form". That means Young's modulus and Poisson's ratio (or springs) and a density (or point masses). Nonlinear material data such as plasticity is ignored. Check the unit shown beside the density field before you type a number.
- Geometry. Attach or model the part. Small fillets add elements without moving the low modes much; heavy features far from the supports move them a lot, so keep those.
- Model: connections and mesh. Joints and springs are allowed; contacts behave linearly (see the mistakes section). A Point Mass can stand in for a motor whose stiffness you don't need. Ansys lists no special mesh controls for modal, but the mesh still needs a convergence check.
- Analysis Settings. Max Modes to Find defaults to 6; you can instead ask for all modes in a frequency range with Limit Search to Range. Leave Solver Type on Program Controlled, as Ansys recommends, and Damped on No for an ordinary undamped modal. Under Output Controls you can request stress, which shows only "the relative distribution of stress". If a harmonic, transient, random vibration or response spectrum analysis will follow, set Future Analysis to MSUP Analyses (it is set automatically when you link a downstream system).
- Supports. Apply the supports that match how the part is really held: Fixed Support, Frictionless Support, Cylindrical Support, Elastic Support and so on. Non-zero displacements are not allowed. Ansys recommends against Compression Only Support in a modal run because its nonlinear nature "could result in extraneous or missed natural frequencies".
- Solve and read the frequencies. Select the Solution object: Mechanical shows a bar chart of the frequencies and a Tabular Data grid listing them. For participation factors and effective mass, select Solution Information and set Solution Output to Participation Factor Summary.
- Plot the mode shapes. Insert a Total Deformation result for each mode and animate it to see whether it is bending, torsion, axial or a local panel mode.
You can repeat the example below on the free Ansys Student licence. For Analysis Settings in other analysis types, see our guide to analysis settings in Ansys Mechanical. The full Workbench sequence of analyses is what Skill-Lync's Structural Analysis Using Ansys Workbench Mechanical course covers.
Worked example: what are the natural frequencies of a steel cantilever?
A steel cantilever 400 mm long with a 30 mm × 10 mm section, clamped at one end and bending in its thin direction, has its first three natural frequencies at 50.96 Hz, 319.37 Hz and 894.24 Hz by Euler-Bernoulli beam theory. A simple beam-element FE eigen solve reproduces them to better than 0.1% with 8 elements.
The inputs are typical structural steel values: GPa, kg/m³, m, width mm and thickness mm. So mm², mm⁴, and the beam weighs 0.942 kg. For a uniform clamped-free beam, the natural frequencies are:
where the are the roots of the clamped-free frequency equation . Our script solves that equation numerically: , , , the same values as standard vibration tables. Putting in the numbers:
Mode 2 has a still point (a node) at , and mode 3 has two, at 0.504 and 0.868. An accelerometer or mounting bolt at a node can't see or excite that mode, which matters when you plan a test. Our beam natural frequency calculator checks these numbers for five support cases.
How many elements does a modal analysis need? The convergence table
We meshed the same beam with 2-node Euler-Bernoulli beam elements (cubic Hermite shape functions, consistent mass matrix, clamped at node 1) and solved with SciPy for 1 to 64 elements. Every value is from that script, kept with this post.
| Elements | DOFs | f₁ (Hz) | Error | f₂ (Hz) | Error | f₃ (Hz) | Error |
|---|---|---|---|---|---|---|---|
| 1 | 2 | 51.20 | +0.48% | 504.49 | +57.97% | n/a | n/a |
| 2 | 4 | 50.99 | +0.048% | 322.08 | +0.85% | 1089.33 | +21.82% |
| 4 | 8 | 50.96 | +0.0033% | 319.74 | +0.12% | 901.17 | +0.77% |
| 8 | 16 | 50.96 | +0.0002% | 319.39 | +0.0080% | 894.79 | +0.061% |
| 16 | 32 | 50.96 | < 0.0001% | 319.37 | +0.0005% | 894.28 | +0.0040% |
| 32 | 64 | 50.96 | < 0.0001% | 319.37 | < 0.0001% | 894.24 | +0.0003% |
| Exact | 50.96 | 319.37 | 894.24 |
Three lessons carry over directly to an Ansys solid mesh:
- Higher modes need more elements. One element gets mode 1 within 0.5% but mode 2 is 58% high. Each half-wave of a mode shape needs several elements, so a mesh fine for mode 1 can be useless for mode 6.
- Consistent mass converges from above. Every error in the table is positive: a coarse mesh is too stiff. Lumped mass and some element formulations break this rule, so don't rely on it in general.
- Converge the modes you will use. Refine until the frequencies you care about stop changing by more than your tolerance, the same idea as a CFD mesh independence study.
Which modes will the Ansys 3D model show?
Our beam model bends in one plane only. A solid model of the same bar also bends in the stiff 30 mm direction, twists and stretches, so its default 6 modes mix types. These are our hand estimates, not an Ansys run: Euler-Bernoulli bending in each plane, Saint-Venant torsion with mm⁴ and GPa (from ), and the axial bar formula.
| Order | Mode type | Estimated frequency (Hz) |
|---|---|---|
| 1 | Bending, thin (10 mm) direction, mode 1 | 51.0 |
| 2 | Bending, wide (30 mm) direction, mode 1 | 152.9 |
| 3 | Bending, thin direction, mode 2 | 319.4 |
| 4 | Bending, thin direction, mode 3 | 894.2 |
| 5 | Bending, wide direction, mode 2 | 958.1 |
| 6 | Torsion, mode 1 | 1099.8 |
| (8) | Axial, mode 1 | 3154.7 |
The wide-direction bending frequency is exactly three times the thin-direction one. Bending the other way swaps for , which is nine times larger for a 30 × 10 mm section, while is unchanged, and . Always animate each mode before you report it.
How much mass does each mode carry? Reading the effective mass table
For the cantilever shaken at its base in the bending direction, mode 1 carries 61.3% of the mass, mode 2 18.8% and mode 3 6.5%. The first three modes together reach 86.6%, and it takes 5 modes (up to 2897 Hz) to pass 90%. A worksheet like this tells you whether you have extracted enough modes for a base-excitation analysis.
| Mode | f (Hz) | |Γ| (√kg) | Effective mass (kg) | Ratio to total | Cumulative |
|---|---|---|---|---|---|
| 1 | 50.96 | 0.7599 | 0.5775 | 61.31% | 61.31% |
| 2 | 319.37 | 0.4212 | 0.1774 | 18.83% | 80.14% |
| 3 | 894.24 | 0.2469 | 0.0610 | 6.47% | 86.61% |
| 4 | 1752.36 | 0.1765 | 0.0312 | 3.31% | 89.92% |
| 5 | 2896.78 | 0.1373 | 0.0188 | 2.00% | 91.92% |
| 6 | 4327.29 | 0.1123 | 0.0126 | 1.34% | 93.26% |
Two checks make the table trustworthy. First, we also computed the ratios by integrating the exact Euler-Bernoulli mode shapes, , and got the same 61.31%, 18.83% and 6.47%. Second, the sum over all 128 FE modes is 0.9327 kg, 99.02% of the 0.942 kg beam. The missing 1% is tied to the clamped node, which can't move. The same thing happens in Ansys: its ratio uses the total mass from the mass summary, which by default includes mass sitting on supported nodes, so the cumulative ratio of a supported model can stop short of 100%.
What are the most common modal analysis mistakes in Ansys?
The mistakes that most often give wrong frequencies are missing or wrong supports (which produce rigid-body modes near 0 Hz), a density typed in the wrong unit (which shifts every frequency by a factor of about 31.6), contacts that are open or nonlinear and so behave differently from what you intended, and reading stress or deformation magnitudes from a mode shape.
Why does my modal analysis show frequencies near 0 Hz?
Frequencies at or near 0 Hz mean the model can move as a rigid body: a support is missing, or a part is not connected to the rest. Ansys's help notes that in any unconstrained direction the solver "calculates rigid-body (zero-frequency)" modes. A free 3D body has six (three translations, three rotations).
We removed the clamp from our beam model to show it. The first two values came out as about Hz and 0.0019 Hz, numerical zeros for the two rigid-body motions a planar beam has (sliding sideways and rotating). The first real frequency was 324.28 Hz, which matches the analytic free-free value, , and has nothing to do with the clamped 50.96 Hz.
When you see near-zero frequencies, check that a support exists, that every body is connected through a contact or joint that is actually closed, and that each support is scoped to the right face. If you want free-free modes, say to compare with a part hung on soft cords in a test, ignore the near-zero ones.
How does a density unit error change the natural frequency?
Frequency varies as , so a density that is 1000 times wrong gives frequencies times wrong. Our script ran the cantilever with the slips people actually make:
| What was entered | Unit system | f₁ |
|---|---|---|
| 7850 kg/m³ (correct) | SI | 50.96 Hz |
| 7.85 in a kg/m³ field (the g/cm³ number) | SI | 1611.5 Hz |
| 7.85e-9 tonne/mm³ (correct) | N-mm-tonne-s | 50.96 Hz |
| 7.85e-6 (the kg/mm³ number) | N-mm-tonne-s | 1.612 Hz |
Workbench converts units as long as the unit beside a field is the one you meant. The risk is highest for hand-typed materials and for input decks in mm-based consistent units. Check the model's total mass against a hand estimate before looking at any frequency. Our consistent units calculator gives the right density in each system.
How are contacts treated in an Ansys modal analysis?
Modal analysis is linear, so a contact cannot open or close during the solve. Ansys freezes each contact at its initial status: bonded stays bonded; rough contact, and frictional contact with a friction coefficient above zero, behave as bonded if initially touching; frictionless contact behaves as no-separation if initially touching. Contacts that start open have no stiffness at all.
| Contact type | Initially touching | Initially open, inside pinball | Initially open, outside pinball |
|---|---|---|---|
| Bonded | Bonded | Bonded | Open (no stiffness) |
| No Separation | No separation | No separation | Open |
| Rough | Bonded | Open | Open |
| Frictionless | No separation | Open | Open |
| Frictional | Bonded if μ > 0; as frictionless if μ = 0 | Open | Open |
Source: Ansys Contact Technology Guide 2026 R1, section 3.18. So a frictional bolted joint with a tiny CAD gap becomes a missing connection and gives spurious low modes. Check contact status with the Contact Tool before solving, or use a pre-stressed modal (below), which takes contact status from the end of a static analysis. Our explainer on contacts in Ansys covers the contact types.
Other mistakes worth a line each
- Too few modes. Six is a default, not a recommendation. With symmetry, extract whole groups of repeated frequencies: a square tube has pairs of identical bending modes.
- Reading mode-shape stresses as real. They show where stress concentrates, not how large it is.
- Expecting loads to change frequencies. They don't in a standalone modal; use a pre-stressed modal.
- Too-ideal supports. A Fixed Support is perfectly rigid and a real clamp is not, so fixed supports raise the frequencies, sometimes by more than the mesh error. If a test reads lower than your model, look at support stiffness first.
What is a pre-stressed modal analysis, and when do you need it?
A pre-stressed modal analysis first solves a Static Structural analysis, then computes natural frequencies using the stiffness of the loaded, stressed part. You need it when operating loads change stiffness: tension raises frequencies (a guitar string, a spinning turbine blade), compression lowers them, and at the buckling load the first frequency falls to zero.
In Workbench, you link a Modal system to the Solution of a Static Structural system; the Modal tree then has a Pre-Stress object pointing at the static result. Ansys's help gives the turbine blade as the standard case: the "large tensile stress" from centrifugal load "causes significant stiffening of the blade" and gives "much higher, realistic natural frequencies". Four rules from the same help pages:
- Supports come from the static analysis and you "cannot apply any new supports" in the pre-stressed modal.
- Ansys recommends that you "always include large deflection effects" in the static analysis for accurate pre-stressed frequencies.
- A pressure applied "Normal To" a face follows the deforming surface and adds a "pressure load stiffness" term; the same load applied by components does not, and the two "can result in significantly different modal results".
- Contacts take their status from the end of the static analysis, not from the undeformed geometry.
To see the size of the effect, we added the geometric stiffness matrix of an axial end load to our cantilever model. The cantilever's buckling load is N, and our FE model reproduces it to within 0.0001%.
| Axial force | N | f₁ | Change |
|---|---|---|---|
| Compression, 0.9 Pcr | −6940 N | 16.72 Hz | −67.2% |
| Compression, 0.5 Pcr | −3855 N | 36.74 Hz | −27.9% |
| None | 0 | 50.96 Hz | |
| Tension, 0.5 Pcr | +3855 N | 61.36 Hz | +20.4% |
| Tension, 1.0 Pcr | +7711 N | 69.79 Hz | +36.9% |
The frequency falling to zero at is the link between modal and buckling analysis: both are eigenvalue problems on the same stiffness matrix. Our post on buckling theory and the Euler formula covers the buckling side, including why real columns fail below the eigenvalue load.
When should you move on to harmonic, random vibration or response spectrum analysis?
A modal analysis tells you where the resonances are, not how large the response will be. Move on when you need response amplitudes: harmonic response for steady sinusoidal forcing, random vibration (PSD) for broadband shaking such as road or transport vibration, response spectrum for shock or earthquake spectra, and transient structural for a load history in time.
| The load is... | Analysis in Ansys | What it gives |
|---|---|---|
| A steady sine at known frequencies (motor, pump, unbalance) | Harmonic Response, linked to Modal (mode superposition) | Amplitude and stress vs frequency, peaks at resonances |
| Random, described by a power spectral density (vehicle, rail, launch vibration) | Random Vibration (PSD) | Statistical (1-sigma) displacement and stress |
| A shock or seismic response spectrum | Response Spectrum | Peak response from combined modes |
| An arbitrary time history (impact, start-up) | Transient Structural (full or mode superposition) | Response in time |
All three mode-superposition analyses reuse the Modal solution, so the modal model must contain every mode that will respond. Ansys's guidance for random vibration is to "extract enough modes to cover 1.5 times the maximum frequency in the PSD excitation", and it gives the same 1.5 times figure as "a conservative estimate" for mode-superposition harmonic analysis. For response spectrum, it says you should include enough modes to cover the frequency range of the spectrum, and offers a Missing Mass Effect option for the high-frequency remainder. For our cantilever under a 20-2000 Hz random input, that rule means extracting every mode up to 3000 Hz, which is the first five bending modes in the thin direction plus whatever else the 3D model finds in that range.
When resonance is the concern, the first fix is usually a design change that moves the natural frequency away from the forcing frequency. Our guide to choosing the right structural analysis in Ansys works through a dynamic amplification example for a bar on a 25 Hz machine.
Frequently asked questions
Why are the deformation values in my Ansys modal results so large?
Because they are not real. A mode shape is an eigenvector, so its scale is arbitrary; Ansys normalises it internally and the plot legend reflects that scaling. Ansys's own help calls the absolute deformations and stresses from a modal run "meaningless". Use the plot only for the shape. Real amplitudes need a harmonic, random vibration, response spectrum or transient analysis.
How many modes should I extract in Ansys?
Enough to cover your excitation range with margin. Ansys's guidance for random vibration and mode-superposition harmonic analysis is to cover 1.5 times the highest excitation frequency. For base excitation, also check the cumulative effective mass fraction in the Participation Factor Summary; in our cantilever it took 5 modes to pass 90%.
Do loads affect a modal analysis in Ansys?
Not in a standalone modal analysis: Ansys's help says the load vectors it generates "do not affect natural frequencies or mode shapes". They can be passed to a downstream mode-superposition analysis. Loads change frequencies only through pre-stress, so link a Static Structural analysis if the load stiffens or softens the part.
What is the difference between modal analysis and harmonic analysis?
Modal analysis finds natural frequencies and mode shapes with no forcing, so it has no real amplitudes. Harmonic response analysis applies a sinusoidal load over a frequency range and computes actual amplitudes and stresses, usually by mode superposition on top of a modal solution. Run modal first to find the resonances, then harmonic to see how bad they are.
Sources and further reading
- Ansys, Inc., Mechanical User's Guide 5.6.5, Modal Analysis, Release 2026 R1, accessed 1 December 2026: setup steps, stiffness and mass requirement, supports, Compression Only Support warning, loads not affecting frequencies, pre-stress rules, arbitrary scaling of results.
- Ansys, Inc., Mechanical User's Guide 16.1.11.3, Modal Acoustics and Modal Analysis Options, 2026 R1: Max Modes to Find default 6, Limit Search to Range.
- Ansys, Inc., Mechanical User's Guide 18.8, Specifying Solution Information, 2026 R1: Participation Factor Summary worksheet tables.
- Ansys, Inc., Mechanical User's Guide 4.12, Apply Pre-Stress Effects for Implicit Analysis, 2026 R1: large deflection recommendation, pressure load stiffness, restart points.
- Ansys, Inc., Mechanical User's Guide 17.6.3, Support Type Boundary Conditions, 2026 R1.
- Ansys, Inc., Random Vibration Analysis, Harmonic Response Analysis Using Linked Modal Analysis System and Response Spectrum Analysis, Mechanical User's Guide 2026 R1: the 1.5 times rule, mode coverage, Missing Mass Effect.
- Ansys, Inc., Mechanical APDL Structural Analysis Guide, Chapter 3: 3.1 Uses for Modal Analysis, 3.3 Building the Model, 3.4 Applying Loads and Obtaining the Solution (rigid-body modes, participation factor table) and 3.8 Comparing Mode-Extraction Methods, 2026 R1.
- Ansys, Inc., Mechanical APDL Theory Reference, 15.3 Modal Analysis and 15.7 Spectrum Analysis (effective mass and cumulative mass fraction), 2026 R1.
- Ansys, Inc., Contact Technology Guide, 3.18 Contact Behavior in Linear Analyses, 2026 R1: Table 3.4, contact status used in a linear analysis.
- P. Hadley, TU Graz, Cantilever beam normal modes (Microelectronics and Micromechanics course notes): clamped-free frequency equation and mode shape, accessed 1 December 2026.
- Harvey Mudd College, E80, Analytical mode shapes of beams (PDF): fixed-free βL values 1.875, 4.694, 7.855.
- Skill-Lync, Finite Element Analysis book, unit 18: Dynamic analysis.
- Skill-Lync,
cantilever_fe.pyandfigures.pyin the run folder for this post (Python, NumPy and SciPy, run 1 December 2026): every frequency, error, effective mass, pre-stress and unit-check number above.


