Antenna Gain & Directivity Back
Electromagnetics

Antenna Gain & Directivity Simulator

Select your antenna type, adjust frequency, transmit power, and link distance to instantly compute the Friis transmission equation and free-space path loss. Visualize the polar radiation pattern interactively.

Antenna Parameters
Antenna Type
Frequency f (MHz)
MHz
Transmit Power Pt (W)
W
Distance r (km)
km
Wavelength λ
Antenna Gain Gt
FSPL
Received Power Pr
Link Margin
Results
Gain (dBi)
FSPL (dB)
Rx Power (dBm)
Link Margin (dB)
Radiation Pattern (Polar)
Rx Power vs Distance
Theory & Key Formulas
$$P_r = P_t G_t G_r \left(\frac{\lambda}{4\pi r}\right)^2$$

FSPL = 20·log₁₀(4πrf/c) [dB]
Assumed noise floor: −100 dBm

What is Antenna Gain & Directivity?

🙋
What exactly is antenna "gain"? If it's not creating extra power, what's it doing?
🎓
Basically, gain describes how an antenna focuses its radiated power. Think of a flashlight versus a bare lightbulb. The flashlight (high-gain antenna) doesn't create more light, but it concentrates it into a tight beam for longer reach. In the simulator, try changing the "Antenna Type" from a simple dipole to a multi-element Yagi. You'll see the gain in dBi jump, showing how the pattern becomes more directional.
🙋
Wait, really? So a higher gain antenna is just more focused? Does that mean it's worse for some situations?
🎓
Exactly! A high-gain antenna is excellent for point-to-point links, like between two mountain tops. But it's terrible if you need to cover a wide area, like a Wi-Fi router in your home. For instance, if you set the "Elements N" slider to 1 (a dipole), the pattern is broad. Set it to 8 (a Yagi), and the beam gets very narrow. If you misalign it, you lose the signal completely.
🙋
Okay, I see the trade-off. So how do I use this to figure out if my signal will be received? What's the "link budget" the tool mentions?
🎓
The link budget is just an accounting of all the gains and losses from transmitter to receiver. The simulator does this for you using the Friis equation. Try this: set a "Distance r" of 10 km and a low "Transmit Power Pt". The received power might dip below the noise floor. Now, increase the antenna gain on both ends. You'll see the received power climb, making the link viable. That's the essence of link budget design.

Physical Model & Key Equations

The core of wireless link calculation is the Friis Transmission Equation. It tells you the power received ($P_r$) based on transmitted power ($P_t$), the gains of the antennas ($G_t$, $G_r$), the wavelength ($\lambda$), and the distance between them ($r$).

$$P_r = P_t G_t G_r \left(\frac{\lambda}{4\pi r}\right)^2$$

$P_r, P_t$: Received and transmitted power (Watts).
$G_t, G_r$: Gain of transmit and receive antennas (linear ratio, not dB).
$\lambda$: Wavelength, calculated from frequency ($\lambda = c / f$).
$r$: Distance between antennas (meters).
The term $(\lambda / (4\pi r))^2$ is the free-space path loss, representing how the signal spreads out and weakens with distance.

Path loss is often expressed in decibels (dB) for convenience. The Free-Space Path Loss (FSPL) formula is derived directly from the Friis equation.

$$\text{FSPL (dB)}= 20 \log_{10}\left(\frac{4\pi r f}{c}\right)$$

$f$: Frequency (Hz).
$c$: Speed of light (~$3 \times 10^8$ m/s).
This shows a critical insight: path loss increases with both distance and frequency. In the simulator, increase the "Frequency f" and watch the received power drop faster over the same distance.

Frequently Asked Questions

No, in this simulator, the radiation pattern displays a fixed theoretical shape for each antenna type. Changing the frequency or transmission power will not alter the pattern shape, but the gain value and the calculated received power and propagation loss will be updated in real time.
Please input the gain as a dimensionless value (ratio) in the numerical input field. For example, 5 dBi is approximately 3.16 times. Internally, the simulator automatically applies it to Friis' transmission equation to calculate the received power. If you need to convert to dBi, please calculate it separately.
When the received power is less than 1 W, it may display as a negative value in units such as dBm or dBW. This is physically normal. According to Friis' equation, as the distance increases, the received power decreases and the free-space path loss increases.
This tool is intended for educational and understanding purposes only. In actual design, it is necessary to consider factors such as reflections, diffraction, obstacles around the antenna, impedance matching, and polarization loss. Please use this tool to intuitively grasp the basic characteristics under the ideal condition of free space.

Real-World Applications

Satellite TV Dishes: The large parabolic dish is a very high-gain antenna. It's precisely pointed at a geostationary satellite over 35,000 km away to focus on its weak signal and reject interference from the ground. The simulator shows why high gain is non-negotiable here—try achieving a positive link budget at that distance with a dipole!

Wi-Fi Router Placement: Most home routers use moderate-gain antennas with a broad radiation pattern to cover all rooms. If you replaced them with high-gain Yagis, you'd get amazing signal in one direction but dead zones everywhere else. This trade-off is easily explored by changing antenna types in the tool.

Long-Range Microwave Backhaul: Cell towers often connect to each other via focused microwave links. Engineers use the Friis equation to select antenna gain, frequency, and power to ensure a reliable link over tens of kilometers, often aligning antennas with sub-degree precision to maximize the gain benefit.

RFID and NFC Systems: These short-range systems operate with very low power. The reader antenna's gain and directivity are carefully designed to create a specific "bubble" of coverage. The path loss calculation is crucial to define the maximum read range, which you can simulate by setting a very short distance and low power.

Common Misconceptions and Points to Note

There are a few key points you should be especially mindful of when starting to use this simulator. First is the misconception that higher gain is always better. It's true that with antennas like the Yagi-Uda, gains exceeding 10 dBi can extend communication range in a specific direction. However, the trade-off is that the beamwidth becomes narrower. For example, a device like a smartphone needs to receive signals from base stations in all directions, so an omnidirectional antenna is actually more suitable. For a directional antenna, "where you point it" is everything.

Next, don't forget that the simulation assumes "free space". The calculations here do not include any reflections from walls or the ground, scattering by trees, or effects of rain. In actual urban areas, it's not uncommon for received power to drop by 20 dB or more at the same distance when behind a building. Treat this tool's results as "theoretical values under ideal conditions," and it's a golden rule to include a sufficient margin (e.g., 10–20 dB) in your actual design.

Finally, a pitfall in parameter settings: frequency and wavelength have a trade-off relationship. Looking at Friis' transmission equation, you see that received power is proportional to the square of the wavelength λ, right? This means that for the same distance, lower frequency (longer wavelength) results in smaller propagation loss. For instance, comparing 2.4 GHz (Wi-Fi) and 28 GHz (5G mmWave), the frequency is about 11.7 times higher, so the loss difference is 20*log10(11.7) ≈ 21 dB. If you use a high-frequency band, you need to compensate for the loss with higher gain.

How to Use

  1. Set antenna gain (0–20 dBi) using the nSlider control; typical dipole antennas range 2–5 dBi, Yagi arrays 10–15 dBi
  2. Adjust transmission frequency (300 MHz–6 GHz) via freqSlider to compute free-space path loss; higher frequencies increase attenuation exponentially
  3. Configure transmit power (0–50 dBm) and link distance (100 m–100 km) to calculate received power and link margin using the Friis transmission equation
  4. Monitor output labels: Gain, FSPL (dB), Rx Power (dBm), and Link Margin (dB) update in real-time

Worked Example

A cellular base station operates at 2.4 GHz with 15 dBi directional antenna and 30 dBm transmit power. At 5 km distance, free-space path loss = 20 log(5000) + 20 log(2.4×10^9) + 20 log(4π/3×10^8) = 120.4 dB. Received power = 30 + 15 − 120.4 = −75.4 dBm. If receiver sensitivity is −85 dBm, link margin = −75.4 − (−85) = 9.6 dB, indicating acceptable performance for WiFi 5 systems.

Practical Notes

  1. Increase antenna gain by 3 dB (doubling directivity) to extend range 41% further; critical for long-distance IoT and satellite downlinks
  2. At millimeter-wave frequencies (28 GHz, 5G), path loss exceeds 140 dB at 1 km; compensate with phased arrays (20+ dBi gain) or shorter ranges
  3. Link margin below 3 dB leaves minimal fading headroom; add 10 dB margin for Rayleigh fading environments (urban NLOS scenarios)
  4. Verify receiver noise figure separately; total system noise degrades effective link margin by 5–15 dB in practical RF chains