Freight Lane Margin, Deadhead & Operating Ratio Engine
Zero-dependency Node.js (src/laneMargin.js) and Python Decimal (freight_lane_margin/engine.py) library modeling Asset Carrier and Brokerage/3PL lane profitability, deadhead RPM drag, verified U.S. EIA Form EIA-888 diesel FSC ($5.474/gal Nov 30, 2026), detention/layover/TONU/lumper accessorial sensitivity, QuickPay fees, and break-even solvers.
Launch Full Interactive Simulator on strongtoweronline.com
Browse Source Code on GitHub
Explore All 22 Free Freight Tools
Zero Dependencies
EIA Nov 30, 2026: $5.474/gal
Asset Carrier & Brokerage/3PL
Node.js >= 18 + Python >= 3.9
MIT License · Strong Tower Consulting, LLC (Est. 2008)
Interactive Browser-Local Engine Sandbox
Net Operating Margin$351.4015.77% · Healthy Margin
Operating / Cost Ratio84.23%Breakeven: $3.03/loaded mi
Gross Load Revenue$2,228.98FSC: $436.48 · Acc: $112.50
Deadhead RPM Drag-$0.43/mi$3.60 loaded vs $3.16 total mi
Without Accessorials$241.15OR shifts to 88.61%
Verified 4-Preset Cross-Engine Parity Table (Node.js & Python Decimal)
| Preset | Mode | Miles (L / DH) | Gross Rev | Total Cost | Net Margin | OR % | No-Acc OR |
|---|---|---|---|---|---|---|---|
| Midwest Dry Van | Asset Carrier (CPM) | 620 / 85 | $2,228.98 | $1,877.58 | $351.40 | 84.23% | 88.61% |
| CA-to-TX Reefer | Asset Carrier (% Gross) | 1,450 / 110 | $5,598.60 | $5,019.59 | $579.01 | 89.66% | 95.99% |
| Port Drayage w/ Detention | Asset Carrier (% Gross) | 95 / 42 | $1,007.76 | $854.97 | $152.79 | 84.84% | 120.37% |
| Dedicated Brokerage | Brokerage / 3PL | 850 / 60 | $3,303.40 | $2,754.33 | $549.07 | 83.38% | 92.23% |
Drop-In Code Usage (Node.js & Python)
Node.js (src/laneMargin.js — Zero Dependencies)
import {
LANE_PRESETS,
simulateFreightLaneMargin,
solveRequiredLinehaul,
solveMaxDeadheadMiles,
} from "./src/index.js";
const res = simulateFreightLaneMargin(LANE_PRESETS.midwest_van);
console.log(res.netOperatingMarginUsd, res.operatingRatioPct);
// 351.4 84.23
console.log(solveMaxDeadheadMiles(LANE_PRESETS.midwest_van, 90));
// maxDeadheadMiles: 134.42
Python (freight_lane_margin/engine.py — Decimal)
from freight_lane_margin import (
LANE_PRESETS,
simulate_freight_lane_margin,
solve_max_deadhead_miles,
)
res = simulate_freight_lane_margin(LANE_PRESETS["port_drayage"])
print(res.operating_ratio_pct, res.or_no_acc_pct)
# 84.84 120.37
print(solve_max_deadhead_miles(LANE_PRESETS["port_drayage"], 90))