Factorio Rate Calculator

Factorio Production Rate Calculator

function calculateAssemblers() { var itemsPerMinute = parseFloat(document.getElementById("itemPerMinute").value); var craftingSpeed = parseFloat(document.getElementById("craftingSpeed").value); var modules = parseInt(document.getElementById("modules").value); var moduleEffect = parseFloat(document.getElementById("moduleEffect").value) / 100; var beaconCount = parseInt(document.getElementById("beaconCount").value); var beaconModuleEffect = parseFloat(document.getElementById("beaconModuleEffect").value) / 100; var resultDiv = document.getElementById("result"); if (isNaN(itemsPerMinute) || isNaN(craftingSpeed) || isNaN(modules) || isNaN(moduleEffect) || isNaN(beaconCount) || isNaN(beaconModuleEffect)) { resultDiv.innerHTML = "Please enter valid numbers for all fields."; return; } if (itemsPerMinute <= 0 || craftingSpeed <= 0 || moduleEffect < 0 || beaconModuleEffect < 0 || modules < 0 || beaconCount < 0) { resultDiv.innerHTML = "Inputs must be positive values (except module/beacon effects which can be 0)."; return; } // Calculate the effective crafting speed of a single assembler var assemblerCraftingSpeed = craftingSpeed; // Apply speed modules var moduleSpeedBonus = modules * moduleEffect; assemblerCraftingSpeed *= (1 + moduleSpeedBonus); // Apply beacon module effects var totalBeaconEffect = beaconCount * beaconModuleEffect; assemblerCraftingSpeed *= (1 + totalBeaconEffect); // Calculate the crafting speed required per item to meet the target rate // This is the inverse of items produced per minute by a single assembler at full speed var requiredCraftingSpeedPerItem = 1 / craftingSpeed; // Calculate the actual items produced per minute by one augmented assembler var actualItemsPerMinutePerAssembler = assemblerCraftingSpeed / requiredCraftingSpeedPerItem; // Calculate the number of assemblers needed var assemblersNeeded = itemsPerMinute / actualItemsPerMinutePerAssembler; // Round up to the nearest whole assembler var finalAssemblers = Math.ceil(assemblersNeeded); resultDiv.innerHTML = "You will need approximately " + finalAssemblers + " assemblers to produce " + itemsPerMinute + " items per minute."; }

Understanding Production Rates in Factorio

Factorio is a complex factory-building game where optimizing production is key to success. A critical aspect of this optimization is understanding the production rate of various machines, particularly assemblers.

Assembler Mechanics

Assemblers are the workhorses of your factory, capable of crafting a wide variety of intermediate and final products. Each assembler has a base crafting speed, which determines how quickly it can produce items. This base speed is influenced by several factors:

  • Crafting Speed: The inherent speed of the assembler type (e.g., Assembler 1, 2, or 3).
  • Crafting Recipe: Different recipes have different crafting times, even with the same assembler speed. Our calculator assumes a baseline and allows you to specify the desired output rate.
  • Modules: Speed modules can be inserted into assemblers to increase their crafting speed but also increase energy consumption and pollution.
  • Beacons: Beacons are powerful structures that can buff nearby machines (including assemblers) with effects from modules placed within them. Beacon modules do not consume energy or produce pollution themselves but require a constant power supply.

Calculating Required Assemblers

To ensure your factory can produce a desired number of items per minute, you need to calculate how many assemblers are necessary. This involves considering the base crafting speed, any modules installed directly into the assembler, and the effects from nearby beacons.

The Formula (Simplified for the Calculator):

The core idea is to determine the output rate of a single, fully augmented assembler and then divide your target production rate by that individual output rate to find the number of assemblers required. The calculator handles the complex interactions of modules and beacons to determine this individual output rate.

  • Base Crafting Speed: The intrinsic speed of the assembler.
  • Module Speed Bonus: The percentage increase from speed modules directly in the assembler.
  • Beacon Speed Bonus: The percentage increase from modules in nearby beacons.
  • Effective Crafting Speed: Base Speed * (1 + Module Bonus) * (1 + Beacon Bonus).
  • Items per Minute per Assembler: Effective Crafting Speed / Crafting Time per Item.
  • Total Assemblers Needed: Target Items per Minute / Items per Minute per Assembler.

The calculator automatically rounds up to the nearest whole number, as you cannot build fractions of assemblers.

Example Usage

Let's say you want to produce 100 Electronic Circuits per minute. Your assemblers have a base crafting speed of 1. You plan to install 2 Speed Module 1s (each giving 5% speed bonus) into each assembler and place them near 1 beacon that also has a Speed Module 1 (giving 10% speed bonus).

Using the calculator:

  • Items Produced Per Minute: 100
  • Assembler Crafting Speed: 1
  • Number of Speed Modules: 2
  • Speed Module Effect (%): 5
  • Number of Beacons: 1
  • Beacon Module Effect (%): 10

The calculator would then determine the required number of assemblers to meet this demanding production target, factoring in all the buffs.

Leave a Comment