Interactive Calculator: Shannon Channel Capacity
Try Change SNR (linear ratio) to 100.
Observe Watch channel capacity and SNR (dB) after Calculate.
Explain Explain why capacity gains slow down at SNR 100.
Technical boundaries. The channel capacity uses bandwidth multiplied by log2 of 1 plus the linear SNR. SNR (dB) uses 10 x log10 of the linear ratio.
viewof bandwidth_hz = Inputs.range([1000, 1000000], {value: 125000, step: 1000, label: "Bandwidth (Hz)"})
viewof snr_linear = Inputs.range([1, 1000], {value: 10, step: 1, label: "SNR (linear ratio)"})
shannon_capacity = bandwidth_hz * Math.log2(1 + snr_linear)
snr_db = 10 * Math.log10(snr_linear)
html`<div style="background: var(--bs-light, #f8f9fa); padding: 1rem; border-radius: 8px; border-left: 4px solid #16A085; margin-top: 0.5rem;">
<p><strong>Channel Capacity:</strong> ${(shannon_capacity / 1000).toFixed(2)} kbps (${shannon_capacity.toFixed(0)} bps)</p>
<p><strong>SNR (dB):</strong> ${snr_db.toFixed(1)} dB</p>
<p style="margin-top: 0.5rem; font-size: 0.9em; font-style: italic;">Insight: ${snr_linear >= 100 ? "Very high SNR - capacity gains slow down (logarithmic)" : snr_linear >= 10 ? "Good SNR - moderate capacity" : "Low SNR - limited capacity even with more bandwidth"}</p>
</div>`
Back to the chapter