ThisCalculator

Everyday

X4 Foundations Factory Calculator: How to Plan

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

The X4 Foundations factory calculator works out how many production modules you need to build a self-sustaining station that meets a target output (for example, 10,000 Hull Parts per hour). You enter your desired ware and hourly rate, and the calculator returns the required number of each production module and the supporting resource modules (ore, methane, energy cells, etc.). This guide explains the math behind those tools, how to use them, and common mistakes players make.

Formula

The core formula is simple: Number of production modules = ceil(Target output per hour ÷ Output per module per hour). For each production module, you also need to know its input consumption per hour, which is Input per cycle × Cycles per hour. Then the number of resource modules (miners, solar panels, etc.) is ceil(Total input required per hour ÷ (Resource module output per cycle × Cycles per hour)).

Variables:

  • Target output – the amount of the final ware you want per hour (units/h).
  • Production module output – how many units one module produces per cycle (units).
  • Cycles per hour – how many times the module completes a production cycle in one hour (cycles/h). This is determined by the module’s production time and any workforce bonuses.
  • Input per cycle – the amount of a specific resource (e.g., ore) needed for one production cycle (units).
  • Resource module output per cycle – how many units of that resource a mining module or solar panel produces per cycle (units).

Worked Example

Using the default values from the calculator above:

  1. Target output = 10,000 units/h, production module output = 300 units/cycle.
  2. Modules needed = ceil(10,000 ÷ 300) = ceil(33.33) = 34 modules.
  3. Input per hour = 20 units/cycle × 8 cycles/h × 34 modules = 5,440 units/h.
  4. Resource modules needed = ceil(5,440 ÷ (50 × 8)) = ceil(13.6) = 14 modules.

So to produce 10,000 units/h with these module stats, you need 34 production modules and 14 resource modules (assuming all modules have the same cycle time and workforce bonus).

How to Choose a Factory Calculator

Several online tools exist for X4: Foundations, and they differ in how they handle modules, workforce, and station layout. When choosing one, consider:

  • Does it include all wares? Some calculators only cover base resources (ore, silicon, methane) while others include advanced wares like Weapon Components or Shield Components.
  • Does it account for workforce? Workforce increases production speed up to +40% for most modules. A good calculator lets you set workforce level.
  • Does it handle multiple resources? A station often needs several inputs (e.g., ore and methane). The calculator should show each resource module separately.
  • Does it show intermediate products? For complex stations (like a Hull Parts + Claytronics hub), you need to know how many of each intermediate module to build.

Most calculators use the same underlying data from the game files, so results are similar. The main differences are in user interface and whether they let you fine-tune workforce and manager skill.

Common Mistakes and How to Avoid Them

Players often make these errors when using factory calculators:

  • Ignoring workforce bonuses – If you plan for a station with full workforce but build it without, you’ll fall short. Or vice versa, you’ll overbuild.
  • Mixing up production time and cycles per hour – A module that takes 30 seconds per cycle runs 120 cycles per hour, not 2. Always convert seconds to hours.
  • Forgetting that miners have travel time – A mining module’s output per cycle is fixed, but the number of trips per hour depends on distance to the resource probe. Calculators assume ideal conditions.
  • Rounding down instead of up – You can’t build half a module, so always round up to the next whole number. The calculator does this automatically with ceil().
  • Not accounting for storage capacity – A station with insufficient storage will stall even if module counts are correct. Add solid, liquid, and container storage based on your production rate.

Limitations of the Formula

The formula assumes perfect efficiency: no production downtime, no resource shortages, and no travel time for miners. In practice, your station may produce less than the theoretical maximum because:

  • Miners spend time traveling to and from resource fields.
  • Trade ships may fail to deliver resources on time if you’re not self-sufficient.
  • Workforce grows slowly and may not reach the level you planned for.
  • Manager skill affects station efficiency (higher skill reduces resource consumption by up to 30% for some modules).

Because of this, it’s wise to add a 10-20% buffer to your module counts, especially for critical wares like Hull Parts or Advanced Electronics.

Alternatives to Manual Calculation

If you don’t want to use an external calculator, the game itself provides some information. In the Station Planning menu, you can see the production and consumption rates for each module you’ve placed. However, this only shows per-module rates, not the total needed for a target output. To calculate manually, you can use the formula above with data from the in-game encyclopedia.

Some players also use spreadsheet templates that they update with their own module stats. This gives you full control and lets you account for workforce and manager bonuses precisely. The trade-off is that you need to keep the data up to date with game patches.

Frequently Asked Questions

Q: Do factory calculators account for the manager’s skill?
A: Some do, but most don’t by default. Manager skill reduces resource consumption by up to 30% for production modules. If your calculator doesn’t have a field for it, you can manually reduce the input per cycle by the appropriate percentage.

Q: How do I know the output per module per hour?
A: The in-game encyclopedia shows production time and output per cycle. Divide 3600 by the production time in seconds to get cycles per hour, then multiply by output per cycle. For example, a module that produces 300 units every 450 seconds runs 8 cycles per hour, giving 2,400 units/h.

Q: Can I use the same calculator for all production chains?
A: Yes, the basic formula works for any ware. You just need the correct input/output per cycle and cycle time for each module. Advanced calculators include these values for all wares, so you don’t have to look them up.

Q: What if I want a station that produces multiple wares?
A: You calculate each ware separately, then combine the resource modules. For example, a station producing both Hull Parts and Claytronics needs ore for both, so you sum the ore requirements and then calculate the number of ore miners.

Q: Why does my station produce less than the calculator says?
A: The most common reasons are workforce not at the planned level, miners traveling long distances, or storage filling up and blocking production. Check each of these before adjusting your module counts.

Q: Is it better to overbuild or underbuild?
A: Overbuilding by 10-20% is usually safer because it compensates for inefficiencies. Underbuilding means your station won’t meet its target, which can break your supply chain.

Related

Formula used
in t | Target hourly output | units/h | 10000 | 0
in d | Production module output | units/h | 300 | 0
in e | Production cycles per hour | cycles/h | 8 | 0
in f | Input per cycle | units | 20 | 0
in g | Resource module output per cycle | units | 50 | 0
out modules | Production modules needed | - | ceil(t / d) | 0
out input_per_h | Input required per hour | units/h | f * e * ceil(t / d) | 0
out resource_modules | Resource modules needed | - | ceil(input_per_h / (g * e)) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.