Skip to content
View in the app

A better way to browse. Learn more.

Ham Radio Base -Powered By Ham CQ DX

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Solar
SFI 125
SN 85
A 7
K 2 Quiet
X-Ray C1.9
Wind 445.8 km/s
Aurora 2
Updated 00:30 UTC HamQSL · N0NBH
Day 80/40m Fair 30/20m Good 17/15m Good 12/10m Fair
Night 80/40m Good 30/20m Good 17/15m Good 12/10m Poor

Callsign Lookup
_
Vanity Call Signs Available
Enter filters above and click Search.
ⓘ Callsign lookups are in real time via the FCC database. Vanity callsign availability is refreshed daily at 6:00 AM CST. The vanity search may be unavailable for a few minutes during this update.
Live DX spots
Live DX Spots — 70cm via PSKReporter · scroll or pinch to zoom
Band
Mode
Time
Loading map data…
MHz DX Spotter Info
Recent spots
Select a band above to load spots
Ready — select a band to fetch live spots

Antenna HubAntenna Software › Antenna Modelling Basics

Ham Radio Antenna Modelling Basics: NEC2 & Method of Moments

Antenna modelling software lets you design, test, and optimise antennas on your computer before cutting a single piece of wire. This guide explains how the underlying mathematics works, what the software actually computes, how to interpret its outputs, and what its limits are — so you can trust the results that matter and ignore the artefacts that do not.

Reading time: ~20 min
Skill level: Beginner–Intermediate
Calculators: 2 included
Topics: NEC2, MoM, gain, patterns, ground, validation
Why Model Before You Build?

Before antenna modelling software existed, antenna design was a combination of measured experience, published formulae, and expensive trial and error. A Yagi designer would build an antenna, measure its performance, adjust element lengths and spacings, rebuild, and repeat — a process requiring weeks of work and significant material cost for each design iteration. Antenna modelling collapses this cycle to minutes per iteration. A designer can explore hundreds of element configurations, compare their gain and pattern, evaluate the feed point impedance across a band, and arrive at an optimised design before ordering a single metre of aluminium tubing.

For the home amateur builder, modelling serves three equally important purposes. First, it predicts the performance of a planned antenna before construction — answering questions like "will this inverted-V on 40 m actually work at my site height, or will ground proximity kill the radiation angle?" Second, it helps diagnose unexpected antenna behaviour after construction — if your measured SWR does not match predictions, something real-world differs from the model and finding the discrepancy is diagnostic. Third, it builds deep intuition about how antenna geometry affects performance, making you a better antenna builder even when you are working from published designs without modelling them yourself.

What modelling predicts well

Feed point impedance (R + jX), resonant frequency, gain in dBi, radiation pattern shape, take-off angle, front-to-back ratio, and bandwidth. Predictions within 5–10% of measured values are typical for well-constructed wire models over realistic ground.

What modelling predicts poorly

Absolute efficiency of short loaded antennas (loading coil Q is hard to model accurately). Near-field effects of buildings, trees, and complex terrain. Performance of antennas with thick elements near junctions. Common-mode current on feedlines not included in the model.

Free tools available today

4NEC2, MMANA-GAL, xnec2c (Linux), cocoaNEC (macOS), and the web-based antenna.dl2kq.de simulator. All use NEC2 or equivalent engines. Commercial tools (EZNEC Pro, FEKO, CST) add accuracy for thick structures and near-field analysis.

The Method of Moments — How NEC2 Actually Works

The Numerical Electromagnetics Code (NEC2) was developed at Lawrence Livermore National Laboratory in the 1970s and remains the foundation of virtually all free amateur antenna modelling software. It implements the Method of Moments (MoM), a numerical technique for solving integral equations that describe the electromagnetic behaviour of wire structures.

The core idea is straightforward in concept. You divide the antenna into many short wire segments. On each segment, the current distribution is assumed to follow a simple mathematical function — typically a sinusoidal basis function. Maxwell's equations then tell us that the electric field at any point in space is the sum of contributions from all current elements everywhere in the structure. By requiring that the boundary conditions at the wire surface are satisfied at each segment — specifically that the tangential electric field at the conductor surface must equal zero for a perfect conductor — we get a system of simultaneous linear equations. One equation per segment, one unknown (the current amplitude on that segment) per segment.

Matrix form of the MoM equation [Z] × [I] = [V]    where [Z] = impedance matrix, [I] = unknown currents, [V] = excitation voltages

NEC2 assembles the impedance matrix [Z] — an N × N matrix where N is the number of segments — and then solves the linear system using LU decomposition. This gives the current on every segment. From the current distribution, every other antenna parameter follows: feed point impedance from the voltage-to-current ratio at the source segment, far-field radiation pattern from the superposition of all current elements' contributions, gain from the ratio of maximum radiated power density to the total radiated power divided by 4π steradians.

The computational cost scales as N³ for matrix factorisation — doubling the segment count multiplies computation time by eight. This is why high-segment-count models are noticeably slower and why choosing the right segment count is an important modelling skill.

Key Modelling Concepts Every Operator Should Know

Gain vs. directivity

These two terms are frequently confused. Directivity is a purely geometric property — it measures how much more power a real antenna radiates in its maximum direction compared to a theoretical isotropic radiator that spreads power equally in all directions. It depends only on the shape of the radiation pattern, not on efficiency. Gain is directivity multiplied by efficiency — it accounts for power actually lost in the antenna conductors, loading coils, and ground return path. A lossless antenna has gain = directivity. A lossy short loaded antenna may have directivity of +1 dBi but gain of −3 dBi if efficiency is only 50%.

Gain from directivity and efficiency Gain (dBi) = Directivity (dBi) + 10 × log₁₀(η)   where η = efficiency (0 to 1)

NEC2 reports gain in dBi, which already includes the efficiency of any resistive loads in the model. When you read "gain = 7.8 dBi" from a dipole model, that number assumes the conductor has the loss resistance you specified. If you omitted loss resistance (modelling ideal conductors), the gain is slightly optimistic — typically 0.1–0.3 dB high for a well-constructed dipole using good wire.

dBi vs. dBd

Antenna gain is expressed relative to either an isotropic radiator (dBi) or a free-space half-wave dipole (dBd). The relationship is fixed: 0 dBd = 2.15 dBi, because a half-wave dipole in free space has 2.15 dBi of gain over an isotropic source. NEC2 and all modern antenna modelling software report gain in dBi. Commercial antenna specifications sometimes use dBd — which makes the numbers look smaller — to compare with amateur radio publications that may use dBi. Always check which reference is being used before comparing antenna gain figures.

dBi to dBd conversion Gain (dBd) = Gain (dBi) − 2.15    Gain (dBi) = Gain (dBd) + 2.15

Take-off angle (elevation angle)

The take-off angle (TOA) or elevation angle of the main radiation lobe is one of the most practically important numbers from an antenna model. For DX operation on HF, you want low-angle radiation — signals that leave the antenna at shallow angles bounce off the ionosphere and travel long distances. A typical DX contact on 20 m involves signals leaving the antenna at 5–20° elevation. An antenna with a 45° TOA radiates most of its power skyward — useful for NVIS regional contacts but poor for DX.

TOA is primarily determined by antenna height above ground, expressed in wavelengths. A dipole at λ/4 height has a high TOA (around 60–70°). At λ/2 height the TOA drops to around 30°. At λ height it drops further to around 15°. For verticals, the TOA is determined more by the ground quality and radial system — a good ground system brings the TOA down to 20–30° which is a principal advantage of verticals over low dipoles for DX.

Front-to-back ratio (F/B)

For directional antennas (Yagis, quads, delta loops), the front-to-back ratio is the gain in the forward direction minus the gain in the exact opposite (180°) direction, expressed in dB. A 20 dB F/B ratio means the antenna radiates 100× more power forward than backward. High F/B is useful for reducing interference from stations behind the beam. Note that the F/B ratio is a single-direction figure — the worst-case rejection may occur at an angle other than exactly 180°, which is why some engineers use the front-to-rear ratio (worst-case rejection over the rear hemisphere) as a more conservative measure.

Interactive Calculator: Gain, Directivity & Efficiency

Gain / Directivity / Efficiency Converter

Ground Models — Choosing the Right One

Ground is the most influential environmental factor in antenna modelling, and choosing the appropriate ground model is one of the most important decisions you make before running a simulation. All major NEC2-based tools offer the same three broad options:

Free space

No ground is present — the antenna radiates into infinite homogeneous space in all directions. Free-space models are useful for comparing two antenna designs on equal terms (removing ground as a variable), for VHF and UHF antennas mounted on towers where the antenna height is many wavelengths above ground, and for verifying element geometry and feed point impedance before adding ground complexity. A free-space half-wave dipole shows the classic figure-8 pattern with 2.15 dBi maximum gain — this is the reference value against which ground effects are measured.

Perfect ground (infinite perfect conductor)

The ground plane is a perfect conductor at Z = 0. This is the easiest ground to compute and gives theoretical maximum performance for any antenna above ground — no ground loss, maximum image current reinforcement. Perfect ground results are optimistic: real ground always has higher loss and lower conductivity. Use perfect ground for quick feasibility checks and for studying image current effects on verticals, where the perfect-ground model clearly shows the image antenna pattern. Never use perfect ground for predicting real-world performance of low-mounted antennas.

Real ground (Sommerfeld-Norton or MININEC)

Real ground uses measured or estimated soil parameters (conductivity σ and relative permittivity εr) to model the loss and reflection effects of realistic earth. Two implementations are common: the MININEC ground model (used in MMANA-GAL and early NEC programs) and the Sommerfeld-Norton ground model (used in NEC-4 and some NEC-2 implementations). MININEC ground is faster but less accurate for horizontal antennas below 0.2λ height. Sommerfeld-Norton is more accurate across all heights and is preferred for publication-quality results. For practical design work, either gives useful results for antennas above 0.15λ height.

Soil Typeσ (S/m)εrWhen to use
Very poor (dry desert/rock)0.000110Arid climates, solid rock sites
Poor (dry sandy soil)0.00110Sandy coastal inland, rocky hills
Average suburban0.00513Typical residential garden
Good (moist loam/clay)0.01020Fertile farmland, river floodplain
Very good (rich agricultural)0.03025Heavy clay, marsh edge
Salt water5.00080Coastal, shipboard, island DXpedition
Reading a Radiation Pattern Plot

The radiation pattern is the most visually distinctive output of antenna modelling software, and learning to read it correctly is essential for understanding what a model is telling you. Patterns are displayed in two forms: polar plots (a 2D circular diagram showing gain vs. angle in one plane) and 3D surface plots (a three-dimensional surface where the distance from the origin represents gain in any direction).

Elevation plot

The elevation pattern shows gain as a function of elevation angle above the horizon, typically as a polar plot where 0° is the horizon and 90° is straight up. For HF DX antennas, you want to see a strong lobe at low elevation angles — 5–20° for most long-distance HF propagation. NVIS antennas deliberately peak at 70–90° elevation for regional coverage. The take-off angle is the elevation angle where the main lobe has its maximum gain.

Azimuth plot

The azimuth pattern shows gain as a function of compass direction at a fixed elevation angle (usually the take-off angle). For an omnidirectional antenna (dipole, vertical), this plot is a circle or figure-8. For directional antennas (Yagi, quad beam), it shows clearly the forward gain, sidelobe levels, and front-to-back ratio. The azimuth plot at the take-off angle is the most operationally relevant pattern — it shows what the antenna actually does at the angles where signals travel.

Interpreting the pattern scale

Polar patterns are displayed on a dB scale, with the outer ring representing the maximum gain value. The rings inside represent successively lower gain levels — check the software's legend for the dB per ring. A 5 dB per ring scale means the inner ring is 5 dB below maximum, the second ring is 10 dB below, and so on. A lobe that reaches only the innermost ring is 5 dB weaker than the main lobe — still significant. A lobe that only reaches halfway to the centre ring is 20–25 dB below maximum — negligible in practice.

NEC2 Input File Format — Reading the Raw Code

All NEC2-based software writes and reads a standard text file format using two-letter card codes. Understanding this format lets you read antenna files from any NEC2 program, modify them in a text editor, and import them into any NEC2 engine. The key cards you will encounter are:

NEC2 input file — half-wave dipole at 10m height, 14.2 MHz CM Half-wave dipole, 20m band, 10m height
CE
GW 1 11 -5.05 0 10 0 0 10 0.001 ← Wire 1: tag=1, 11 segs, X1 Y1 Z1 X2 Y2 Z2 radius(m)
GW 2 11 0 0 10 5.05 0 10 0.001 ← Wire 2: same height, other arm
GE 1 ← End geometry; 1 = ground present
LD 5 0 0 0 5.8E7 ← Load: type 5 = wire conductivity, copper (S/m)
GN 2 0 0 0 0.005 13 ← Ground: MININEC type, σ=0.005, εr=13
EX 0 2 1 0 1 0 ← Excitation: voltage source on tag 2 seg 1, 1V 0°
FR 0 1 0 0 14.2 0 ← Frequency: 14.2 MHz, 1 step
RP 0 73 73 1000 0 0 5 5 ← Radiation pattern: elevation 0–360°, azimuth 0–360°, 5° steps
EN ← End of input

The GW card (Geometry Wire) is the most important — every wire in the antenna is one GW card. The EX card places the excitation source. The GN card sets ground parameters. The FR card sets frequency. The RP card requests a radiation pattern calculation. All graphical NEC2 interfaces write exactly this format behind the scenes — understanding it demystifies what the software is doing and lets you edit models directly when the GUI is inconvenient.

Validating a Model Against Reality

A model that has never been compared to a real antenna measurement should be treated as an educated estimate rather than a fact. Model validation closes the loop between simulation and reality and builds confidence in your modelling workflow. The gold standard is to build the antenna, measure its impedance with a NanoVNA or antenna analyser, compare to the model prediction, identify discrepancies, and update the model until it matches.

1
Measure resonant frequency and compare to predicted

The frequency where the model shows minimum reactance (X ≈ 0) should agree with the measured frequency of minimum SWR within 1–3%. A larger discrepancy suggests the physical wire length differs from the model (measure and correct), the wire is insulated (lower VF than modelled), or nearby objects not in the model are detuning the antenna.

2
Compare feed point resistance at resonance

At the resonant frequency, compare the model's R value to the measured R (from VNA or SWR analysis). A dipole at λ/2 height should be 50–70 Ω. Significantly lower R (under 30 Ω) may indicate height is lower than modelled or the arms are not fully extended. Higher R (above 100 Ω) often indicates the antenna is electrically longer than modelled.

3
Validate bandwidth (SWR 2:1 bandwidth)

The bandwidth of the SWR sweep from the model should match measured bandwidth within 10–20%. Very narrow predicted bandwidth that matches measured bandwidth confirms the antenna Q is being modelled correctly. If measured bandwidth is much wider than predicted, the real antenna may have more resistive loss than the model assumes.

4
Compare gain using a calibrated reference

Direct gain comparison requires a calibrated reference antenna and careful measurement technique. A practical alternative is to compare signal reports on a reliable path — WSPR, WSJT-X FT8 spots, or a Reverse Beacon Network spot from a known location — before and after an antenna change. A 3 dB model-predicted gain improvement should show as approximately +3 dB in signal reports, accounting for propagation variability.

5
Update the model to match measurements

When discrepancies exist, adjust the model parameters to reflect reality rather than theory. Common adjustments: actual measured wire length rather than calculated, actual height measured with a tape rather than estimated, insulated-wire velocity factor (0.94–0.97 instead of 1.0), and soil conductivity estimated from soil type rather than assumed average. A validated model is far more reliable for predicting the effect of further changes.

Interactive Calculator: NEC2 Segment Checker & Model Health

NEC2 Segment Quality Checker

Comparing the Major Free NEC2 Tools
ToolPlatformEngineBest ForLimitation
MMANA-GALWindows (Wine)MMINEC / NEC2Beginners, quick wire design, optimiserSimplified ground model; thick elements less accurate
4NEC2WindowsNEC2Full NEC2 access, frequency sweeps, S-N groundSteeper learning curve; GUI less intuitive
EZNEC (demo)WindowsNEC2 / NEC4Professional results, excellent GUIDemo limited to 20 segments; full version paid
xnec2cLinuxNEC2Native Linux, real-time pattern displayNo optimiser; manual NEC2 card editing needed
cocoaNECmacOSNEC2Native macOS, scripting supportLess maintained; some older macOS compatibility issues
Online NEC2Web browserNEC2No install, quick checks from any deviceLimited file size; no local save; session-only
Practical Modelling Workflow for a New Antenna Design
1
Start with a known reference — model a simple dipole first

Before modelling your intended design, model a standard half-wave dipole at a known height and verify the results match published reference values (impedance ~73 Ω in free space, 7.8 dBi gain over real ground at λ/2 height). If your setup gives wildly different results, find the error before proceeding to a complex model.

2
Build the new model with minimum segments first

Use 5–7 segments per half-wave for the initial exploration. Run quickly, check that geometry is sensible, feed point is in the right place, and results are in a plausible range. Do not invest time in detailed optimisation of a model that may have a structural error.

3
Increase segments and verify convergence

Double the segment count and re-run. If results change by more than 1 dB in gain or 10% in impedance, the model has not converged — keep increasing segments. When doubling the count produces less than 0.5 dB gain change and less than 5% impedance change, you have sufficient segments for reliable results.

4
Run a frequency sweep across the operating band

Calculate the antenna at 5–10 frequencies spanning the band. Plot SWR, gain, and impedance vs. frequency. This reveals whether the antenna maintains acceptable SWR across the whole band, whether the gain varies significantly across the band, and where the resonant frequency actually falls.

5
Optimise if needed and validate the final model

Use the software's optimiser (if available) for parameter refinement. After reaching a satisfactory design, run a final high-segment-count calculation to confirm results. Document the model parameters and results for reference when building and testing the real antenna.

Frequently Asked Questions

Do I need to understand the maths to use antenna modelling software?

No. You need to understand what the software outputs (gain, impedance, pattern) and what its inputs mean (wire coordinates, frequency, ground parameters). The MoM mathematics happens invisibly. Understanding it helps you interpret errors and limitations but is not required for productive use of the tools.

How many segments is enough for accurate results?

For most practical HF wire antenna design, 11 segments per half-wave element gives good results — fast enough for interactive design while accurate enough for impedance and gain to within 2–5% of the converged value. Increase to 21+ segments for Yagi optimisation or when sidelobe patterns matter. Use segment convergence testing (doubling segments) to confirm your count is adequate.

Why does my model show different results than a published design?

Common causes: different ground parameters (free space vs. real ground), different antenna height, different wire diameter, or the published design used a different NEC engine version. Always compare models run under identical conditions — same ground, same height, same segment density. Also check that your wire coordinates exactly match the published design dimensions.

Can antenna modelling predict my actual signal strength?

Modelling predicts relative gain and take-off angle — not absolute received signal strength, which depends on ionospheric propagation, receiver noise figure, and path conditions that NEC2 does not model. You can compare two antennas and say "Antenna B has 3 dB more gain at 15° elevation than Antenna A" with confidence. You cannot say "I will receive an S7 signal with Antenna B."

Is NEC4 worth the cost for amateur use?

NEC-4 (available at cost from Lawrence Livermore for non-US users, or through EZNEC Pro) adds improved accuracy for buried conductors, thick element junctions, and very low-height antennas. For most amateur wire antenna work above 0.1λ height, NEC2 with a good ground model gives results indistinguishable from NEC-4. NEC-4 is worth its cost if you design buried radial systems, medium-wave verticals, or need the best possible accuracy for thin dipoles very close to ground.

Can I model a beam antenna in an urban environment with nearby buildings?

Approximately. NEC2 can model nearby conducting structures (metal rooflines, water tanks, other antenna elements) as additional wire geometry in the model. The limitation is that real buildings contain dielectric walls, irregular geometry, and a mix of metallic and non-metallic components that are impractical to model precisely. Adding simple wire outlines of nearby metal structures gives a useful sensitivity check — if the pattern is relatively insensitive to those structures, your model is reliable despite the simplification.

Related Guides

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.