---
type: Article
title: "SNMP Bandwidth Calculator | Interface Traffic"
description: "Calculate SNMP interface throughput from counter samples. Convert octets to Mbps and see link utilization with rollover support."
resource: "https://snmp-monitoring.com/tools/snmp-bandwidth-calculator/"
tags: [tools, snmp]
timestamp: 2026-07-13T00:00:00Z
---

# SNMP Bandwidth Calculator

Use this SNMP bandwidth calculator to turn two interface counter readings into inbound and outbound throughput. Enter the values returned by `ifInOctets` and `ifOutOctets`, or their 64-bit counterparts `ifHCInOctets` and `ifHCOutOctets`, then set the time between polls and the interface speed. The result is shown in bits per second and as a percentage of link capacity.

## Calculate SNMP interface traffic

The calculator handles one counter wrap at the selected 32-bit or 64-bit width. It performs the calculation in your browser, so the counter values you enter stay on this page.

## How the SNMP bandwidth formula works

An SNMP interface counter records a cumulative number of octets. Subtract the earlier counter from the later counter to find how many octets crossed the interface between polls. Multiply by eight to convert octets to bits, then divide by the elapsed time in seconds.

`bits per second = (counter₂ − counter₁) × 8 ÷ seconds`

The calculator computes inbound and outbound directions separately. To estimate utilization, divide the resulting bit rate by the configured interface capacity and multiply by 100. For a 1 Gbps port receiving 250 Mbps, utilization is 25 percent.

## Choose the right SNMP counters

The older IF-MIB objects `ifInOctets` and `ifOutOctets` are 32-bit counters. On a fast interface, they can wrap between polls. IF-MIB also defines `ifHCInOctets` and `ifHCOutOctets` as 64-bit counters. Prefer those high-capacity counters when the device supports them, especially for links faster than 100 Mbps.

Use the same interface index for both samples. A row such as `ifHCInOctets.7` identifies interface index 7, and the value must come from that same interface at both times. The poll interval should reflect the actual time between samples, not just the configured schedule, because delayed polls affect the rate calculation.

## Counter wrap and interpretation

If the later value is smaller than the earlier value, the calculator treats it as one rollover at the selected counter width. This is appropriate when a counter reached its maximum and restarted at zero. A device reboot, interface reset, or counter discontinuity can also make the value fall. In those cases, the apparent delta is not traffic, so compare `sysUpTime` or interface discontinuity data and discard samples that span a reset.

The utilization percentage is a directional rate divided by the entered interface speed. Full-duplex interfaces can receive and transmit at their rated speed simultaneously, so inbound plus outbound can exceed 100 percent when both directions are summed. The calculator shows each direction separately to make that distinction clear.

## FAQ

**Which OID should I use for bandwidth?** Use `ifHCInOctets` and `ifHCOutOctets` from IF-MIB when available. They are 64-bit cumulative octet counters. Legacy devices may expose only the 32-bit `ifInOctets` and `ifOutOctets` objects.

**Why does my calculated rate exceed the interface speed?** The sample may span a counter reset, use the wrong counter width, or use an inaccurate poll interval. Verify the interface index and the raw readings. Bursts and implementation-specific counter behavior can also affect samples.

**Does this calculate average bandwidth or instantaneous bandwidth?** It calculates average throughput across the interval between the two samples. Shorter intervals provide a more responsive estimate but can be more sensitive to polling jitter.

## Conclusion

Use two readings from the same interface, account for elapsed time and counter width, and interpret each direction independently. For ongoing alerting, an external monitor such as [ostr.io Monitoring](https://ostr.io/info/monitoring) can poll devices on a schedule. See the [SNMP interface traffic OIDs](/sensors/network/interface-traffic.md) and [polling frequency guide](/monitoring/check-frequency.md) for related details.
