Ham Radio Antenna Modeling & Software
Antenna modeling software lets you simulate radiation patterns, gain, impedance, and bandwidth before cutting a single piece of wire or aluminum. The NEC2 and NEC4 method-of-moments solvers that power most amateur radio modeling tools are the same computational methods used by professional antenna engineers — available free or at low cost to any licensed operator. This section covers every major tool used by the ham radio community, with guides for getting started and getting accurate results.
MMANA-GAL
The best starting point for antenna modeling. Free, straightforward graphical wire editor, NEC2 solver, and 3D radiation pattern display. Handles dipoles, Yagis, loops, and verticals with minimal learning curve. The right tool for first-time modelers.
4NEC2
The most capable free NEC2/NEC4 front-end available. Supports the full NEC2 and NEC4 engine, frequency sweeps, parameter optimization, 3D visualization, and near/far field calculations. The workhorse tool for serious HF antenna design.
EZNEC
The best commercial NEC2/NEC4 front-end, developed by W7EL. Cleanest interface of any NEC-based tool. EZNEC+ handles up to 500 segments; EZNEC Pro/4 runs NEC4 for accurate buried radial and soil modeling. The professional standard in ham radio.
NEC2 Modeling Fundamentals
Not a software title but the essential foundation — what NEC2 is, how the method-of-moments solver works, wire segmentation rules, ground modeling options, how to read output plots, and the common modeling mistakes that produce misleading results.
HFTA — Terrain Analysis
HF Terrain Analysis models how the terrain surrounding your QTH affects antenna radiation patterns at low elevation angles. Plug in your topography toward a target direction and see exactly what takeoff angle your antenna delivers in the real world.
YO — Yagi Optimizer
Purpose-built Yagi optimization tool. Optimizes element lengths and boom spacing simultaneously for maximum gain, front-to-back ratio, desired bandwidth, and target feedpoint impedance. Particularly effective for VHF and UHF EME and contest Yagi design.
AutoEZ
An Excel-based NEC2 front-end by AC6LA that automates parameter sweeps and optimization through EZNEC. Enables systematic sensitivity analysis — vary element lengths, heights, or spacing across a defined range and plot results automatically.
OpenEMS
Full 3D FDTD electromagnetic simulator — open source and cross-platform. Overkill for wire antennas but invaluable for PCB antennas, patch antennas, phased arrays, waveguide structures, and any geometry where NEC2's thin-wire assumptions break down.
WSJT-X / WSPR
Not a modeling tool — real-world propagation and antenna comparison software. Transmit WSPR beacons and track worldwide reception spots to compare antenna performance with actual RF. The most honest antenna evaluation available to any operator.
linSmith
A Smith chart tool for impedance matching network design. Plot impedance loci, design L-networks, T-networks, and transmission line matching sections graphically. Useful for matching non-50Ω antenna feedpoints to coaxial feedlines.
| Software | Cost | Platform | Solver | Best For | Skill Level | Guide |
|---|---|---|---|---|---|---|
| MMANA-GAL | Free | Windows | NEC2 | First models, dipoles, loops, simple Yagis | Beginner | Guide → |
| 4NEC2 | Free | Windows | NEC2 + NEC4 | Full HF antenna design, optimization, sweeps | Intermediate | Guide → |
| EZNEC (standard) | ~$89 | Windows | NEC2 | Clean NEC interface, up to 500 segments | Intermediate | Guide → |
| EZNEC Pro/4 | ~$149 | Windows | NEC4 | Buried radials, soil modeling, large arrays | Advanced | Guide → |
| HFTA | Free | Windows | Ray tracing | Terrain effects on low-angle radiation, DX station planning | Intermediate | Guide → |
| YO (Yagi Optimizer) | Free | Windows | NEC2 | Multi-element Yagi design and optimization | Intermediate | Guide → |
| AutoEZ | ~$25 | Windows + Excel | NEC2 via EZNEC | Automated parameter sweeps and sensitivity analysis | Advanced | Guide → |
| OpenEMS | Free | Cross-platform | FDTD | PCB, patch, waveguide, and complex 3D geometries | Expert | Guide → |
| linSmith | Free | Linux / Windows | Smith chart | Impedance matching network design | Intermediate | Guide → |
| WSJT-X / WSPR | Free | Cross-platform | On-air | Real-world antenna comparison with propagated signals | All levels | Guide → |
What NEC2 Actually Does
NEC (Numerical Electromagnetics Code) is a method-of-moments computational solver originally developed at Lawrence Livermore National Laboratory. It solves for the current distribution along thin-wire antenna structures by dividing each wire into small segments and solving a matrix equation that satisfies Maxwell's equations at every segment junction.
From this current distribution, NEC calculates:
- Radiation patterns in three dimensions — azimuth and elevation
- Gain in any specified direction — in dBd or dBi
- Feedpoint impedance — R + jX at each frequency
- SWR relative to any specified reference impedance
- Near-field and far-field electromagnetic field strength
- Efficiency including ground loss and loading element loss
NEC4 extends NEC2 with improved ground modeling (buried wires, insulated wires in soil) and better accuracy for antennas close to real ground. For most wire antenna modeling above ground, NEC2 and NEC4 produce essentially identical results.
NEC2 fundamentals guide →Wire Segmentation — The Most Important Modeling Parameter
Every wire in a NEC model is divided into segments — short sections over which the current is assumed to vary linearly. The number of segments per wire determines both modeling accuracy and calculation time. Getting segmentation right is the single most important factor in producing accurate NEC results.
- Minimum segments per half-wavelength: 10 — this is an absolute floor
- Recommended segments per half-wavelength: 15–25 for most antenna work
- Segment length should be uniform within each wire where possible
- At wire junctions, connected segments should be similar in length — avoid ratios greater than 3:1
- Short wires connected to long wires (loading coils, stubs) require careful handling
- Adding more segments increases accuracy but increases calculation time quadratically
A common modeling error is using too few segments on elements that are short relative to wavelength — loading coils, top-hat capacitors, and matching networks. These should be modeled with at least 5–10 segments regardless of physical length.
Ground Models — Choosing the Right One
How you model the ground beneath the antenna significantly affects the predicted radiation pattern and gain. NEC2 offers several ground models:
- Free space — no ground. Use for initial design and when comparing antenna types on equal footing
- Perfect ground — a perfectly conducting infinite plane. Maximum theoretical performance. Not realistic but useful for understanding pattern shapes
- Real ground (Sommerfeld-Norton) — models actual soil conductivity and dielectric constant. Most accurate for antennas close to real ground. Requires soil parameters (conductivity σ and permittivity ε)
- High-accuracy ground (NEC4) — required for buried radials, insulated conductors in soil, and antennas very close to lossy ground
Typical soil parameters: average ground σ=0.005 S/m, ε=13. Good agricultural soil σ=0.02, ε=20. Poor rocky soil σ=0.001, ε=5. Seawater σ=5.0, ε=81. Getting these right matters most for verticals and low dipoles — antennas at λ/2 height and above are relatively insensitive to ground quality.
What Models Cannot Tell You
NEC models are powerful but have important limitations that every modeler must understand to avoid misinterpreting results:
- Infinite ground plane — NEC models assume the ground extends to infinity. Real terrain — hills, valleys, buildings — is not modeled (use HFTA for terrain effects)
- No feedline radiation — NEC does not model common-mode current on coax shields. A model may show good gain while the real antenna radiates differently due to feedline effects
- Thin wire assumption — NEC2 is not accurate when wire diameter approaches wavelength. For thick conductors, NEC4 or FDTD (OpenEMS) is required
- No connector or matching network loss — model results assume ideal connections. Real-world loss in connectors, baluns, and matching networks reduces efficiency
- No mechanical effects — models assume perfect geometry. Sag in long wire antennas and wind-induced element movement are not modeled
- Frequency extrapolation — model accuracy degrades when the antenna structure has features smaller than λ/100 at the modeled frequency
Modeling a 20m Dipole from Scratch
A complete walkthrough of the modeling workflow using MMANA-GAL — from entering wire geometry to interpreting the radiation pattern and adjusting for resonance.
Download and Install MMANA-GAL
Download MMANA-GAL Basic (free) from the MMANA-GAL website. Installation is straightforward on Windows. On Linux, MMANA-GAL runs under Wine. The Basic version handles up to 200 wires and 2000 segments — sufficient for all but the most complex antenna models.
Enter the Dipole Geometry
In the Antenna tab, enter two wire segments representing the dipole legs. Wire 1: from (−8.0, 0, 10) to (0, 0, 10) — the left half-leg, 8 meters long, at 10 meters height. Wire 2: from (0, 0, 10) to (8.0, 0, 10) — the right half-leg. Coordinates are in meters; X is along the wire, Z is height above ground. Total antenna length: 16 meters, which is a rough starting point for 14.2 MHz.
Place the Source (Feed Point)
In the Source tab, add a voltage source at the center of the antenna. For a center-fed dipole, the source goes at the junction between Wire 1 and Wire 2 — the midpoint of the antenna. Set the source impedance to 50 ohms. This tells NEC2 where RF power enters the structure and what reference impedance to use for SWR calculations.
Set Ground Parameters
In the Ground tab, select "Real ground" and enter average soil parameters: conductivity 0.005 S/m, permittivity 13. This models a typical residential lot. Leave ground height at 0. The antenna height of 10 meters (approximately λ/2 at 14 MHz) will show the characteristic low-angle radiation pattern of a dipole at half-wave height.
Set Frequency and Calculate
Enter 14.200 MHz as the operating frequency. Click Calculate. NEC2 will solve the current distribution across all wire segments — for a simple dipole this takes less than a second. MMANA-GAL will display the feedpoint impedance (R + jX), SWR, and gain immediately after calculation.
View the Radiation Pattern
Click the Far Field tab to display the 3D radiation pattern. For a horizontal dipole at half-wave height, you should see a figure-8 pattern in azimuth (strongest broadside, nulls off the wire ends) and a broad lobe in elevation peaking at approximately 14 degrees takeoff angle. Note the gain value — for a dipole at λ/2 height over average ground, expect approximately 7–8 dBi (5–6 dBd).
Run a Frequency Sweep
In the Calculate tab, set a frequency range from 14.0 to 14.35 MHz in 0.05 MHz steps and run the sweep. Plot SWR versus frequency to see the antenna's bandwidth at 2:1 SWR. A 20m dipole should show 2:1 SWR bandwidth of approximately 600–800 kHz — wide enough to cover most of the 20m band without retuning.
Compare Heights and Ground Quality
Change the antenna height from 10m to 5m and recalculate. The takeoff angle rises significantly — compare the elevation pattern plots side by side. Then change ground conductivity from 0.005 to 0.0005 (poor ground) and observe the effect on gain and pattern. This exploration builds intuition about how real-world installation variables affect antenna performance — knowledge that directly improves your physical antenna decisions.
Common Modeling Mistakes and How to Avoid Them
- Too few segments — always check that each half-wavelength has at least 10 segments, preferably 15–25
- Mismatched segment lengths at wire junctions — connected wires should have segment length ratios no greater than 3:1
- Modeling in free space and forgetting that real ground changes everything — always add a realistic ground model before drawing conclusions
- Trusting the model without a convergence check — run with double the segment count and verify results do not change significantly
- Modeling the antenna without the feedline — common-mode current on the coax affects real antenna patterns but cannot be shown in a simple NEC model
- Using perfect ground for anything other than theoretical comparisons — perfect ground dramatically overstates gain and distorts patterns
- Ignoring wire radius — element diameter affects resonant frequency and bandwidth; always enter the actual conductor radius
Interpreting Radiation Pattern Plots
A radiation pattern plot shows signal intensity in all directions relative to the antenna's maximum — it is a normalized relative plot, not an absolute power measurement. Key things to read from a pattern plot:
- Main lobe direction — the direction of maximum radiation. For a dipole this is broadside; for a Yagi it is forward
- Takeoff angle — the elevation angle of maximum radiation. Lower is better for long-distance HF propagation
- Front-to-back ratio — difference in dB between forward gain and rearward radiation. Important for directional antennas
- Sidelobe levels — secondary lobes that may cause or receive interference from unwanted directions
- Gain value — peak gain in dBi or dBd. Remember to verify whether the software is reporting dBi or dBd
- Null depth — how completely the antenna rejects signals from null directions. Deep nulls can help reject interference
When to Use NEC4 Instead of NEC2
For most amateur radio wire antenna work, NEC2 produces accurate and reliable results. NEC4 is specifically required when:
- Modeling buried radials for ground-mounted verticals — NEC2 cannot accurately model conductors in soil
- Modeling insulated wires — loading coils with insulated wire, insulated guy wires, or any conductor with significant dielectric coating
- Antennas very close to real ground — within a few percent of a wavelength above ground
- Junction modeling accuracy — NEC4 handles T-junctions and Y-junctions more accurately than NEC2
- High-accuracy modeling of thick conductors near ground
In practice: use NEC2 (MMANA-GAL or 4NEC2 free) for horizontal wire antennas, loops, Yagis, and verticals with above-ground radials. Use NEC4 (4NEC2 with NEC4 engine, or EZNEC Pro/4) when modeling buried radials or accurate ground-mounted vertical performance.
Modeling Workflow Best Practices
- Start with free space to verify basic antenna geometry and resonance before adding ground effects
- Use a convergence test — double segment count and verify results are stable before trusting them
- Model at the actual operating frequency, not a scaled frequency
- Enter real wire dimensions — conductor diameter, actual heights, realistic element spacing
- Save a baseline model before each optimization iteration
- Always validate with a physical measurement — build the antenna and compare NanoVNA results to the model prediction
- Use frequency sweeps rather than single-frequency calculations — bandwidth and SWR behavior across the band reveal design trade-offs
- When optimizing, change one parameter at a time and record the effect before changing another
- Document your models with comments — note the design goals, the date, and what each version changed
Do I need to understand the math behind NEC2 to use it?
No — you need to understand the rules for building valid models (segmentation, wire connections, ground models, source placement) and how to interpret the output (gain, SWR, radiation patterns). The underlying method-of-moments mathematics runs automatically. Most operators learn NEC2 modeling by starting with a known antenna — a simple dipole — modeling it, comparing to published results, and then incrementally exploring more complex designs. The modeling guides in this section provide the practical knowledge needed to produce accurate results without requiring electromagnetics theory.
NEC2 modeling fundamentals →How accurate are NEC2 antenna models?
For thin-wire antennas in free space or over modeled ground, NEC2 is highly accurate — typically within 0.5 dB of gain predictions and within a few degrees of pattern shape when proper segmentation is used. Accuracy degrades when wire diameter approaches the segment length, when conductors are very close to real ground, or when complex geometry violates the thin-wire assumptions. The best validation approach is to build the antenna, measure feedpoint impedance with a NanoVNA, and compare to the model prediction — agreement within 5–10% on impedance and resonant frequency indicates a valid model.
Can I model an antenna on Linux or Mac?
Yes. MMANA-GAL and 4NEC2 are Windows programs but run on Linux under Wine with good compatibility. For native cross-platform NEC modeling, several options exist: xnec2c is a full-featured NEC2 front-end native to Linux with a GTK interface. cocoaNEC runs on macOS. The underlying NEC2 and NEC4 engines are command-line tools that run natively on any Unix system — useful for scripted batch calculations. OpenEMS runs natively on Linux and macOS. For most operators, running MMANA-GAL or 4NEC2 under Wine on Linux is the simplest path.
What is HFTA and why does it matter for DX stations?
HFTA (HF Terrain Analysis) models how the actual terrain surrounding your station — hills, valleys, ridgelines — modifies your antenna's low-angle radiation. The result is often dramatically different from a flat-ground NEC model. A station on a hill with a gradual slope toward Europe may have a 3–5 dB advantage over a flat-ground station at the same antenna height, because the terrain provides additional reflection that reinforces low-angle radiation. Conversely, a hill behind the antenna in the target direction creates a shadow. HFTA requires USGS terrain data for your location — the software guide includes instructions for obtaining the right data files.
HFTA guide →Should I model before or after building an antenna?
Both. Model before building to determine optimal dimensions, expected gain, bandwidth, and feedpoint impedance — this prevents wasted materials and reveals design problems before cutting metal or wire. Model after building to understand why the measured performance differs from predictions — discrepancies between model and measurement often reveal real-world effects like common-mode current, ground quality differences, or nearby coupling that the model could not account for. The iteration between modeling and measurement is how operators develop genuine antenna design expertise rather than just following published dimensions.
What is the difference between NEC2 and FDTD methods?
NEC2 uses the method of moments — it divides antenna conductors into segments and solves for current distribution using integral equations. It is extremely efficient for thin-wire structures but limited to those geometries. FDTD (Finite Difference Time Domain), used by OpenEMS, divides all of space into a three-dimensional grid and solves Maxwell's equations at every point at every time step. It handles arbitrary three-dimensional geometries including PCB traces, waveguides, patch antennas, and complex dielectric structures. FDTD is computationally expensive but necessary when NEC2's thin-wire assumptions do not apply — microwave antennas, PCB designs, and antenna-in-enclosure analysis.
OpenEMS guide →Is EZNEC worth paying for when 4NEC2 is free?
For most operators, 4NEC2 provides everything needed at no cost. EZNEC is worth the modest cost if you value a cleaner, more intuitive interface, better documentation, and reliable technical support from W7EL. EZNEC Pro/4 specifically is worth it if you need the NEC4 engine for buried radial modeling — this is the one capability that distinguishes it from what 4NEC2 provides for free. For operators who model occasionally and do not need NEC4, MMANA-GAL or 4NEC2 are entirely adequate. For operators who model regularly, EZNEC's interface reduces friction enough that many find the modest price worthwhile.
How do I model a Yagi for maximum gain?
Start with published optimized dimensions for your element count — DL6WU, OWA, or NBS designs are well-documented starting points. Enter the geometry in 4NEC2 or MMANA-GAL with accurate element diameters and spacing. Run the built-in optimizer varying element lengths and spacings while targeting maximum forward gain at the design frequency with an SWR constraint of 1.5:1 or better. For serious Yagi design, use the dedicated YO (Yagi Optimizer) software — it was built specifically for this task and applies optimization methods better suited to Yagi geometry than the general NEC2 optimizers. Verify the final design by checking gain, front-to-back ratio, and SWR across the full band, not just at the center frequency.
YO Yagi Optimizer guide →