Skip to content

ships.Function.fuelPerJump

github-actions[bot] edited this page Aug 26, 2026 · 74 revisions

@elite-dangerous-almanac/core / ships / fuelPerJump

Function: fuelPerJump()

fuelPerJump(distance, mass, fuel, fsd): number

Defined in: src/ships/jump-range.ts:211

The fuel a single jump of a given distance costs, in tonnes.

Parameters

distance

number

The jump distance, in light-years. Distances beyond the singleJumpRange cost more than the tank holds — the result is capped at the drive's maxFuel.

mass

number

Total ship mass excluding fuel, in tonnes (see singleJumpRange).

fuel

number

Fuel in the tank, in tonnes — sets the mass moved and caps the burn.

fsd

FrameShiftDriveParams

The drive constants.

Returns

number

Fuel used, in tonnes, in [0, min(fuel, maxFuel)].

Remarks

This is EDSY's model: the cost scales as (distance / maxRange)^fuelPower of the tank's per-jump fuel, where maxRange is singleJumpRange for the same mass and fuel. It round-trips at the maximum jump — fuelPerJump(singleJumpRange(m, f), m, f) returns min(f, maxFuel) — and, with no Guardian FSD Booster, is the exact inverse of singleJumpRange at every distance. With a booster fitted, the booster's flat jumpBoost is treated proportionally (as EDSY does) rather than subtracted, so interior distances are a close approximation rather than the exact inverse. It matches the fuel figures EDSY reports.

Throws

If a quantity is negative or non-finite, or a required drive constant is not positive.

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally