Have you ever encountered a situation where your router is producing full power, but the Wi-Fi still can't reach the desired point? Or, conversely, where the signal is too strong, but the coverage is uneven, with dead zones? In 90% of cases, the problem lies not in the router settings, but in incorrectly selected or calculated antennaEven the most expensive equipment won't save you if the antenna isn't optimized for your needs: whether it's covering a large office, transmitting a signal over a kilometer, or combating interference in an apartment building.
In this article we will figure out how Calculate the parameters of a Wi-Fi antenna yourself — from basic formulas to practical examples taking into account frequency, wavelength, and required gain. You'll learn:
- 📏 How to calculate wavelength for your frequency (2.4 GHz, 5 GHz, 6 GHz) and why this is critical for the accuracy of calculations.
- 📡 What types of antennas suitable for different tasks: from omnidirectional to parabolic, and how their parameters affect coverage.
- 🧮 Ready formulas and online calculators to calculate the vibrator size, gain and radiation pattern.
- ⚡ Why DIY antennas made from cans and wire often perform worse than factory-made ones—and how to fix it (spoiler: it's not just about the materials).
Important: This article is aimed at practitioners — there's a minimum of fluff and a maximum of concrete calculations here. If you're looking for a theory about "how Wi-Fi works," it's better to start with ours. wireless networking knowledge basesAnd if you're ready to delve into the mathematics and physics of antennas, welcome below!
1. Basic Wi-Fi antenna parameters: what you need to know before calculating
Before we pick up the calculator, let's figure it out key characteristics, which determine the operation of any antenna. Understanding them will help avoid common mistakes—for example, when a user calculates an antenna for 5 GHz and then wonders why it doesn't work at 2.4 GHz.
Here minimum set of parametersthat need to be fixed to start of calculations:
- 📶 Operating frequency (f): 2.4 GHz (standards
802.11b/g/n), 5 GHz (802.11a/ac/ax) or 6 GHz (newWi-Fi 6E). It depends on her. wavelength (λ), and therefore the physical dimensions of the antenna. - 📈 Gain (G): measured in
dBi(decibels relative to an isotropic radiator). The higher the value, the narrower the beam and the greater the range, but the smaller the coverage width. - 🔄 Radiation pattern: determines how the antenna “shines” the signal - in all directions (omnidirectional) or in one direction (directional).
- 🔌 Impedance (wave resistance): usually
50 OhmFor Wi-Fi antennas. An impedance mismatch between the cable and the router will result in signal loss.
For example, if you want to block the signal two-story house, you will need an omnidirectional antenna with gain 3–6 dBi. And for communication between two buildings at a distance of 500 meters, a directional antenna with 12–15 dBi and a narrow diagram.
2. Formula for calculating the wavelength and antenna size
The very first step is to determine wavelength (λ), on which the antenna will operate. It depends on physical dimensions all elements: vibrator, reflector, director (if the antenna is of the "wave channel" type). The formula is simple:
λ (m) = c / f (Hz)
Where:
c— the speed of light (~3 × 10⁸ m/s),f— frequency in hertz (for example,2.4 × 10⁹ Hzfor 2.4 GHz).
For convenience, you can use a simplified formula for frequencies in gigahertz:
λ (cm) ≈ 30 / f (GHz)
Calculation examples:
| Frequency (GHz) | Wavelength (cm) | Example of use |
|---|---|---|
| 2.4 | 12.5 | Standard routers (802.11n) |
| 5.0 | 6.0 | Modern networks (802.11ac) |
| 5.8 | 5.17 | Street bridges, PTMP systems |
| 6.0 | 5.0 | New standard Wi-Fi 6E |
Knowing the wavelength, you can calculate vibrator size (for example, for a dipole antenna):
L (cm) ≈ λ / 2
For 2.4 GHz it will be ~6.25 cm, for 5 GHz - ~3 cm. But remember: actual sizes may vary due to shortening coefficient (depending on the material and thickness of the wire).
Why do homemade antennas made from cans often fail?
The main problem is inaccurate wavelength calculation and lack of impedance matching. A beer can has random dimensions, not multiples of λ/2 or λ/4, and its metal creates parasitic capacitance. Furthermore, such antennas rarely take polarization (vertical/horizontal) into account, leading to losses of up to 20 dB.
3. Gain: How to calculate and what it affects
Gain (G) shows how much the antenna focuses energy in a particular direction compared to an isotropic radiator (a hypothetical antenna that radiates uniformly in all directions). It is measured in dBi.
For directional antennas (e.g. parabolic or Yagi-Uda) the gain can be approximately calculated using the formula:
G (dBi) ≈ 10 × log₁₀(η × (4π × A) / λ²)
Where:
η— Antenna efficiency (usually0.5–0.7for homemade designs),A— effective aperture area (for example, the area of a parabolic reflector),λ— wavelength.
For simple dipole antennas, the gain rarely exceeds 2.15 dBi (theoretical maximum for a half-wave vibrator). To increase this value, use:
- 📡 Reflectors (reflectors) - increase directionality.
- 📶 Directors — focus the signal in one direction (the principle of the Yagi antenna).
- 🔄 Phased arrays — several antennas operating synchronously (used in professional equipment).
Example: If you are assembling an antenna Yagi-Uda for 2.4 GHz with 3 directors and 1 reflector, its gain can reach 7–9 dBiBut remember: increasing gain narrows the radiation pattern!
Determine the operating frequency (f)|Calculate the wavelength (λ)|Select the antenna type (dipole, Yagi, parabolic)|Consider the efficiency (η) and aperture area (A)|Check the impedance matching (50 ohms)-->
4. Radiation pattern: how to construct and read it
The radiation pattern is graphical representation how the antenna radiates a signal into space. It shows:
- 🔹 Main petal — direction of maximum radiation.
- 🔸 Side and rear petals - parasitic radiation that can create interference.
- 🔶 Beam width (in degrees) - determines the "spread" of the signal.
For omnidirectional antennas (eg pin) the diagram looks like a "donut" (radiation in the horizontal plane). For directional (for example, parabolic) - a narrow "cone".
Example diagram for an antenna with gain 6 dBi:
- 📌 Main lobe width at half power level (
−3 dB): ~60°(omnidirectional). - 📌 For the antenna
12 dBi: ~30°(directional).
To build a diagram yourself, you can use programs like EZNEC or 4NEC2, or online services (for example, Antenna Magus). For a simplified calculation, the following rule is suitable:
⚠️ Attention: The beamwidth is approximately inversely proportional to the square root of the gain. For example, as the gain increases with6 dBito12 dBi(4 times in power) the beam width will be halved.
5. Practical examples of antenna calculations
Let's look at two real-life scenarios: homemade antenna for a router And directional antenna for outdoor communications.
Example 1: Dipole antenna for 2.4 GHz
Task: replace the standard router antenna with a homemade one with amplification ~3 dBi.
- We calculate the wavelength:
λ = 30 / 2.4 = 12.5 cm. - We determine the size of the vibrator:
L = λ / 2 = 6.25 cm. - We use copper wire with a diameter
2–3 mm, bend it into the shape of the letter "T" (central conductor + two shoulders6.25 cm). - Connect to the connector
SMAthrough a matching device (balun).
Example 2: Yagi-Uda antenna for 5 GHz (range 1 km)
Task: to organize communication between two buildings at a distance of 1 km.
- 📡 Select the frequency
5.8 GHz(less congested than 2.4 GHz). - 📏 We're counting
λ = 30 / 5.8 ≈ 5.17 cm. - 🔧 We construct an antenna with:
- 1 reflector (length
~0.5λ = 2.58 cm), - 1 active vibrator (
0.47λ = 2.43 cm), - 3 directors (length
~0.43λ, 0.42λ, 0.41λ).
- 1 reflector (length
- 📈 Expected gain:
10–12 dBi.
To accurately calculate the distances between elements, use specialized calculators (for example, Yagi Calculator).
6. Typical calculation errors and how to avoid them
Even experienced radio amateurs sometimes make mistakes that ruin all their calculations. Here are the most common ones:
- 🚫 Ignoring impedance: if the antenna impedance does not match the cable (
50 Ohm), part of the signal will be reflected back. Use balloons for approval. - 🚫 Failure to take polarization into account: if the transmitting and receiving antennas have different polarization (for example, one vertical, the other horizontal), the losses will be up to
20 dB. - 🚫 Neglect of efficiency: homemade antennas rarely have higher efficiency
50–70%. Factor this into your gain calculations. - 🚫 Inaccurate dimensions: at high frequencies (5–6 GHz), even a millimeter deviation leads to resonance failure.
A practical example: a user assembled an antenna from beer cans for 2.4 GHz, but did not take into account that the can has elliptical section, not round. As a result, the radiation pattern was distorted, and the gain was only 1.5 dBi instead of expected 6 dBi.
⚠️ Attention: If you use the antenna outdoors, please consider cable attenuationFor example, cable RG-58 at 2.4 GHz frequency it loses~0.2 dB/m, and at 5 GHz - up to0.4 dB/mFor long lines (more than 10 m) use low-impedance cables such as LMR-400.
7. Online calculators and calculation programs
If you're too lazy to mess around with formulas, use ready-made tools:
| Tool | Purpose | Link (search) |
|---|---|---|
| Choke Ring Calculator | Calculation of screens to reduce interference | choke ring calculator online |
| Yagi-Uda Calculator | Optimization of Yagi antennas | yagi antenna calculator |
| EZNEC (paid) | Modeling of radiation patterns | eznec antenna software |
| 4NEC2 (free) | 3D modeling of antennas | 4nec2 download |
| Wi-Fi Planning Tools | Network coverage planning | wi-fi heatmap software |
To quickly calculate the wavelength and size of the vibrator, you can use our mini-calculator:
Quick wavelength calculation
Enter frequency (GHz): [input field] → ["Calculate" button] → Result: λ = X cm, L (dipole) = Y cm
FAQ: Frequently asked questions about Wi-Fi antenna calculations
❓ Is it possible to use one antenna for 2.4 GHz and 5 GHz?
Theoretically, yes, but in practice it requires broadband design (for example, a log-periodic antenna). Standard dipoles or Yagi antennas are designed for one frequency and will work ineffectively at another. For example, a dipole designed for 2.4 GHz will lose up to 5 GHz at 50% power due to non-resonant length.
❓ How can I check if the antenna is sized correctly?
There are three ways:
- Efficiency measurement: by using spectrum analyzer or SWR meter (measures the standing wave ratio; ideally -
1:1, acceptable - up to1.5:1). - Range test: compare signal level (
dBm) with a reference antenna (for example, a standard one from a router). - Checking the diagram: If the antenna is directional, turn it
90°— the signal should weaken by 2–3 times.
❓ Why does a homemade antenna perform worse than a factory one?
Reasons:
- 🔹 Inaccuracy of sizes (especially critical for 5 GHz).
- 🔹 Lack of shielding - parasitic capacitances distort the diagram.
- 🔹 Low quality materials (for example, oxidized metal increases resistance).
- 🔹 Unmatched impedance - without a balun, the efficiency drops by
30–50%.
Factory antennas are tested for anechoic chamber, where all parameters are measured with an accuracy of up to 0.1 dB.
❓ How to calculate antenna size for Wi-Fi 6E (6 GHz)?
The principle is the same, but there are some nuances:
- 📡 Shorter wavelength: For
6 GHzλ ≈ 5 cm, so the dimensions of the antenna elements must be more precise. - 📶 More attenuation: The 6 GHz signal has a harder time passing through walls, so more amplification may be needed (
8–12 dBi). - 🔧 Already a diagram: 6 GHz antennas require more precise direction adjustment.
Use programs like 4NEC2 taking into account the dielectric constant of the materials (for example, if the antenna is in a plastic case).
❓ Do I need to match the antenna to the router?
Yes! Inconsistency leads to:
- 🔥 Loss of power (to
50%the signal is reflected back to the transmitter). - 🔥 Overheating of the amplifier router (may fail).
- 🔥 Distortion of the diagram direction.
For coordination, use:
- 🔹 Balloons (for symmetrical dipole type antennas).
- 🔹 Matching transformers (For example,
1:4to move from50 Ohmon200 Ohm).