# formula to calculate ber in wireless 802.11 according to distance from tx and rx

I'm looking for a formula to calculate the bit error rate of a wifi communication 802.11a/b/g according to the distance between transmitter and receiver.

There is no one-line "formula", if that is what you are looking for. Traditionally, BER is captured at link-level, meaning it considers the effect of:

• Modulation (BPSK, QPSK, etc.)
• Channel coding rate
• BER for BPSK in AWGN is given in almost every elementary textbook on digital communications, or look here, $BER = \frac12 erfc(\sqrt{\frac{E_b}{N_o}})$. What this doesn't say is the effect of OFDM and channel coding in the least. The best way is to perform simulations and get an empirical BER vs SNR curve. Then may be you can use curve-fitting and deduce a formula, if your really want one. Sep 25, 2012 at 15:25
• Yup, that's what I said: there is no direct formula to relate distance to BER. BER is almost always plotted as a function of SNR ($E_b/N_0$) for a given MCS (modulation and coding scheme). If you want to consider TX-RX distance, you must also consider path loss, lognormal shadowing, Doppler effect, and such large-scale parameters. BER is for "lower-level" details, but parameters like RSSI, cell throughput, etc. are used to observe the effect of TX-RX distance. Sep 25, 2012 at 16:04
• mmm I'm not totally agree with you. according to relation you gave me I can found that the Energy per bit of the receiver is equal to $\frac{E_{b}^{tx}}{{\gamma}}$ where ${\gamma}$ is the attenuation in free space that it is equal to $(\frac{4{\pi}d}{{\lambda}})^2$ where $d$ is the distance between transmitter and receiver and ${\lambda}=\frac{v}{f}$ Sep 25, 2012 at 16:14