CAN Bus Load Calculator (Classic CAN and CAN FD)

Calculate CAN bus load, frame time and effective throughput for classic CAN and CAN FD with bit rate switching. 11-bit and 29-bit IDs, worst-case bit stuffing, J1939 presets.

Input

Protocol
Identifier
Messages (count × payload bytes @ period)
countbytesperiod ms
load = Σ (count × 1000 / period_ms) × t_frame
classic worst: g + 8n + 13 + ⌊(g + 8n − 1)/4⌋ bits
g = 34 (11-bit) or 54 (29-bit)

Result

bus load (worst-case stuffing)

34.6%

28.3% with no stuff bits

Frames / s540
Payload carried34.56 kbit/s

Per-frame breakdown

RowBytes (DLC)Bits best/worstFrame timeFrames/sLoadThroughput
18 (8)131 / 160524 µs – 640 µs40025.60%100 kbit/s
28 (8)131 / 160524 µs – 640 µs1207.68%100 kbit/s
38 (8)131 / 160524 µs – 640 µs201.28%100 kbit/s

Bits include the 3-bit interframe space. Throughput is payload bits per worst-case frame time, the most one ID can carry back to back.

What bus load measures

Bus load is the fraction of time the bus is busy transmitting frames. Add up the frame time of every message sent in one second and divide by one second. A J1939 network at 250 kbit/s carrying 400 frames per second of 8-byte, 29-bit-ID frames is busy for 400 × 640 µs = 256 ms of every second: 25.6% load.

The hard part is the frame time. A CAN frame is not 8 × payload bytes divided by the bit rate. It carries an identifier, control bits, a CRC, an ACK, an end-of-frame marker and an interframe gap. On top of that the controller inserts stuff bits, and their number depends on the data. CAN FD adds a second bit rate for part of the frame. The calculator above handles all of this. Enter your message groups and it gives the load, the per-frame bit count and the effective throughput.

Classic CAN frame length

An 11-bit-ID (base format) data frame with n payload bytes:

SOF 1 + ID 11 + RTR 1 + IDE 1 + r0 1 + DLC 4    = 19
data                                             = 8n
CRC 15 + CRC delimiter 1                         = 16
ACK slot 1 + ACK delimiter 1 + EOF 7             = 9
interframe space (intermission)                  = 3
total without stuff bits                         = 47 + 8n

A 29-bit-ID (extended format) frame adds SRR, 18 more ID bits and r1: 67 + 8n bits. With 8 bytes that is 111 bits for an 11-bit ID and 131 bits for a 29-bit ID.

The interframe space is not part of the frame in the spec, but no other frame can start during it, so it counts toward load.

Bit stuffing

After five consecutive bits of the same level, the transmitter inserts one bit of the opposite level. Receivers drop it. Stuffing runs from SOF through the end of the CRC sequence. The CRC delimiter, ACK, EOF and interframe space are fixed-form and never stuffed.

The stuffed region is g + 8n bits, with g = 34 for 11-bit IDs and g = 54 for 29-bit IDs. The worst case is one stuff bit per four bits after the first, because an inserted stuff bit can itself start a new run of five. That gives the bound used by Davis, Burns, Bril and Lukkien in their 2007 CAN schedulability paper:

worst-case frame bits = g + 8n + 13 + floor((g + 8n - 1) / 4)

The 13 is CRC delimiter + ACK slot + ACK delimiter + 7 EOF bits + 3 interframe bits. For 8 bytes:

IDNo stuffingWorst caseWorst case at 250 kbit/sWorst case at 500 kbit/s
11-bit111 bits135 bits540 µs270 µs
29-bit131 bits160 bits640 µs320 µs

Real traffic sits between the two columns. Payloads full of 0x00 or 0xFF, and IDs with long runs of zeros, push toward the worst case. The calculator shows both. Plan with the worst case. Compare the best case against what a bus analyser reports.

CAN FD: two bit rates

CAN FD with bit rate switching (BRS) sends the arbitration field at the nominal rate, switches to the data rate at the sample point of the BRS bit, and switches back at the CRC delimiter. Only the middle of the frame gets faster.

Counting used here (ISO 11898-1:2015 frame format):

nominal rate: SOF, ID 11, RRS, IDE, FDF, res, BRS       = 17 bits (11-bit ID)
              (29-bit ID adds SRR and 18 ID bits)        = 36 bits
data rate:    ESI 1 + DLC 4 + data 8n
              stuff count 4 + CRC 17 (n <= 16) or 21 (n > 16)
              fixed stuff bits 6 (CRC-17) or 7 (CRC-21)
nominal rate: CRC delimiter, ACK, ACK delimiter, EOF 7, IFS 3 = 13 bits

The CRC field uses fixed stuff bits: one before the stuff count and then one after every four bits, regardless of the data. Dynamic stuffing applies from SOF to the end of the data field. The calculator applies the same floor((bits - 1) / 4) worst case over that region and charges the stuff bits in the arbitration field at the nominal rate and the rest at the data rate.

The calculator counts the CRC delimiter at the nominal rate. The real switch happens at its sample point, so the computed frame time is high by less than one nominal bit. That error is on the safe side.

Worked example: J1939 at 250 kbit/s

A J1939 powertrain segment, all 29-bit IDs, all 8-byte payloads:

  • 4 messages every 10 ms (engine speed and torque, like EEC1)
  • 12 messages every 100 ms
  • 20 messages every 1000 ms

Frame rate: 4 × 100 + 12 × 10 + 20 × 1 = 540 frames/s.

Worst-case frame time at 250 kbit/s: 160 bits × 4 µs = 640 µs.

load = 540 × 640 µs / 1 s = 0.3456 = 34.6 %

Without stuff bits: 131 × 4 µs = 524 µs, 540 × 524 µs = 28.3%. A bus analyser on this segment should read somewhere between those two numbers, before any diagnostics or transport-protocol traffic starts. That is the “J1939 250k” preset in the calculator.

Now move the same 540 frames/s to CAN FD at 500 kbit/s / 2 Mbit/s with 11-bit IDs. An 8-byte FD frame is 30 nominal + 96 data bits without stuffing, and 34 + 113 bits worst case: 68 µs + 56.5 µs = 124.5 µs. Load drops to 6.7%. Packing the payload of those 36 messages into fewer 64-byte frames saves more, because every frame pays the nominal-rate overhead once.

Throughput, not bit rate

The bit rate is not the payload rate. Payload bits divided by frame time gives what one ID can move back to back:

FrameFrame time (best to worst)Payload throughput
Classic, 11-bit, 8 B, 500 kbit/s222 to 270 µs237 to 288 kbit/s
Classic, 29-bit, 8 B, 250 kbit/s524 to 640 µs100 to 122 kbit/s
FD, 11-bit, 64 B, 500 kbit/s / 2 Mbit/s334.5 to 407 µs1.26 to 1.53 Mbit/s

Classic CAN at 8 bytes delivers about half its nominal bit rate as payload. CAN FD at 64 bytes and a 4:1 data-to-nominal ratio delivers about 2.5 to 3 times its nominal rate. Short FD frames gain far less: the 30 nominal-rate bits of overhead cost 60 µs at 500 kbit/s no matter how fast the data phase runs.

When the estimate breaks down

Error frames. Each error adds an error flag, delimiter and a full retransmission. One bad node or a marginal termination can add load the calculator does not see. Leave margin.

FD payload padding. CAN FD only has DLC lengths 0 to 8, 12, 16, 20, 24, 32, 48 and 64. A 9-byte payload goes out as 12 bytes. The calculator pads and shows the transmitted length, for example 9→12 (9) where 9 is the DLC.

Non-ISO CAN FD. The original Bosch CAN FD 1.0 format has no 4-bit stuff count and one fewer fixed stuff bit. Some controllers can still be switched to it. On M_CAN-based peripherals such as STM32 FDCAN that is the NISO bit in CCCR. Frames are 5 data-rate bits shorter. The difference is small, but non-ISO and ISO nodes cannot talk on the same bus.

Periodic is not the whole story. Event-triggered messages, J1939 transport protocol (TP.CM/TP.DT) bursts and UDS diagnostic sessions arrive in bursts. A 1 s average can hide a 10 ms window at 100%. Run the calculator again for the burst. J1939-21 spaces BAM TP.DT packets 50 to 200 ms apart, but an RTS/CTS session can send them back to back.

Load is not latency. At 40% average load a low-priority ID can still wait several frame times when higher-priority frames queue up together. Response-time analysis (the same Davis et al. paper) is the tool for latency guarantees. Bus load only tells you whether the schedule fits at all.

Remote frames and overload frames. Remote frames have no data field, so model them as 0-byte payloads. Overload frames are rare on modern controllers and are not modeled.

Set the bit rate itself with the CAN bit timing calculator, which gives prescaler, segment lengths and sample point for classic CAN and CAN FD. Use this page to check that your message list fits at that rate.

Frequently asked questions

How many bits is a CAN frame with 8 data bytes? +

An 11-bit-ID classic CAN frame with 8 data bytes is 108 bits from SOF to the end of EOF, plus 3 bits of interframe space, so 111 bit times without stuff bits. Worst-case bit stuffing adds 24 bits, for 135. With a 29-bit ID the numbers are 131 and 160. At 250 kbit/s a worst-case 29-bit frame takes 640 µs, at 500 kbit/s an 11-bit frame takes 270 µs.

Why use worst-case stuffing for bus load instead of the average? +

The number of stuff bits depends on the data and the ID. A frame full of 0x00 or 0xFF bytes gets close to the maximum. Real traffic averages lower, so the true load sits between the best-case and worst-case figures. For planning a schedule you want the bound that cannot be exceeded, which is the worst case. The best-case figure is useful when comparing against a bus analyser, which measures what actually went over the wire.

What bus load is too high for CAN? +

There is no limit in ISO 11898. The bus arbitrates by priority, so at high load the highest-priority IDs still get through and the lowest-priority ones wait. Error frames and retransmissions need spare capacity, and latency for low-priority IDs grows quickly as load rises. This calculator warns above 70% worst case. Many vehicle networks are planned well below that to leave room for later messages.

Does CAN FD at 2 Mbit/s carry 4x the data of classic CAN at 500 kbit/s? +

More than that for long payloads, less for short ones. The arbitration field, ACK, EOF and interframe space still run at the nominal rate. A 64-byte CAN FD frame at 500 kbit/s / 2 Mbit/s takes about 335 to 407 µs and carries 512 payload bits, roughly 1.26 to 1.53 Mbit/s back to back. A classic 8-byte frame at 500 kbit/s carries 64 bits in 222 to 270 µs, roughly 0.24 to 0.29 Mbit/s. An 8-byte CAN FD frame gains much less, because the fixed nominal-rate overhead dominates.

Newsletter

The embedded engineer's weekly cheat sheet

Register tricks, timing gotchas, and tool updates. One email per week. No fluff.

No spam. Unsubscribe anytime.