Factorio Max Rate Calculator

Factorio Max Rate Calculator body { font-family: sans-serif; } .calculator-container { border: 1px solid #ccc; padding: 20px; border-radius: 8px; max-width: 600px; margin: 20px auto; } .input-group { margin-bottom: 15px; } label { display: inline-block; width: 180px; margin-bottom: 5px; font-weight: bold; } input[type="number"] { width: 100px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; } button { padding: 10px 15px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #45a049; } #result { margin-top: 20px; font-weight: bold; font-size: 1.1em; } .article-content { margin-top: 30px; line-height: 1.6; } .article-content h2 { margin-bottom: 10px; } .article-content p { margin-bottom: 15px; }

Factorio Max Rate Calculator

Understanding Factorio Production Rates

In Factorio, optimizing production chains is key to building a successful factory. Understanding the maximum rate at which a specific item can be produced is crucial for designing efficient assemblers, refineries, and other production facilities. This calculator helps you determine the theoretical maximum output per second for any given recipe, considering various in-game mechanics.

Key Factors in Production Rate:

  • Recipe Output Per Craft: The number of items produced by a single crafting cycle of a recipe.
  • Crafting Time (Seconds): The duration of a single crafting cycle for a recipe.
  • Number of Crafting Slots: The number of identical crafting machines (e.g., Assembler 1, Assembler 2, Assembler 3) dedicated to this recipe.
  • Productivity Module Slots: The number of Productivity Modules installed in the crafting machines. These modules can increase the output of items without consuming additional resources, but they also slow down the crafting speed.
  • Speed Module Slots: The number of Speed Modules installed in the crafting machines. These modules directly increase the crafting speed, allowing for more crafts per second.
  • Beacons: Structures that emit an effect within a radius, boosting the machines inside. Beacons themselves require power and can be equipped with modules.
  • Beacon Module Slots: The number of modules installed in each Beacon. Speed Modules are most commonly used in beacons to further boost crafting speed.

How the Calculation Works:

The calculator uses the following formulas to determine the maximum production rate:

  1. Base Crafting Speed: This is the inherent speed of the crafting machine (typically 1.0).
  2. Productivity Module Effect: Each Productivity Module reduces the crafting speed by 10% (0.1). The total speed reduction is Productivity Module Slots * 0.1.
  3. Speed Module Effect: Each Speed Module increases the crafting speed by 20% (0.2). The total speed increase is Speed Module Slots * 0.2.
  4. Beacon Speed Effect: Each beacon provides a speed boost based on its modules. If a beacon has N Speed Modules, the speed boost it provides to a machine within its radius is N * 0.2.
  5. Total Speed Modifier: The combined effect of modules and beacons. A machine inside a beacon with speed modules receives the beacon's speed boost in addition to its own module effects. The total speed modifier for a machine is:
    (1.0 - (Productivity Module Slots * 0.1) + (Speed Module Slots * 0.2) + (Beacons * Beacon Module Slots * 0.2))
    Note: This formula assumes the beacon speed module effect is additive to the machine's base speed and speed module effects.
  6. Effective Crafting Time: The actual time it takes to craft one batch, considering the speed modifier.
    Effective Crafting Time = Crafting Time (Seconds) / Total Speed Modifier
  7. Crafts Per Second: The number of crafting cycles completed per second.
    Crafts Per Second = 1 / Effective Crafting Time
  8. Items Per Second (Max Rate): The final maximum production rate.
    Items Per Second = Recipe Output Per Craft * Crafts Per Second * Number of Crafting Slots

This calculator provides a theoretical maximum. In practice, factors like inserter speed, belt throughput, and power availability can limit your actual production rates.

function calculateMaxRate() { var recipeOutputPerCraft = parseFloat(document.getElementById("recipeOutputPerCraft").value); var craftingTimeSeconds = parseFloat(document.getElementById("craftingTimeSeconds").value); var numberOfCraftingSlots = parseFloat(document.getElementById("numberOfCraftingSlots").value); var productivityModuleSlots = parseFloat(document.getElementById("productivityModuleSlots").value); var speedModuleSlots = parseFloat(document.getElementById("speedModuleSlots").value); var beacons = parseFloat(document.getElementById("beacons").value); var beaconModuleSlots = parseFloat(document.getElementById("beaconModuleSlots").value); var resultDiv = document.getElementById("result"); resultDiv.innerHTML = ""; if (isNaN(recipeOutputPerCraft) || isNaN(craftingTimeSeconds) || isNaN(numberOfCraftingSlots) || isNaN(productivityModuleSlots) || isNaN(speedModuleSlots) || isNaN(beacons) || isNaN(beaconModuleSlots)) { resultDiv.innerHTML = "Please enter valid numbers for all fields."; return; } if (craftingTimeSeconds <= 0) { resultDiv.innerHTML = "Crafting Time must be greater than 0."; return; } var baseCraftingSpeed = 1.0; var productivitySpeedReduction = productivityModuleSlots * 0.1; var speedModuleSpeedIncrease = speedModuleSlots * 0.2; var beaconSpeedIncrease = beacons * (beaconModuleSlots * 0.2); // Total speed modifier accounts for machine modules and beacon effects. // Assumes beacons are placed and affect the machine, and the machine has its own modules. // The speed from beacons stacks additively with the machine's own speed modules. var totalSpeedModifier = baseCraftingSpeed – productivitySpeedReduction + speedModuleSpeedIncrease + beaconSpeedIncrease; // Ensure speed modifier doesn't go below a reasonable minimum, though Factorio's game mechanics handle this. // For calculation purposes, we assume it can't be negative. if (totalSpeedModifier <= 0) { totalSpeedModifier = 0.01; // Prevent division by zero and extremely high rates in theoretical edge cases. } var effectiveCraftingTime = craftingTimeSeconds / totalSpeedModifier; var craftsPerSecond = 1 / effectiveCraftingTime; var maxRatePerSecond = recipeOutputPerCraft * craftsPerSecond * numberOfCraftingSlots; resultDiv.innerHTML = "Max Production Rate: " + maxRatePerSecond.toFixed(2) + " items/sec"; }

Leave a Comment