# At what point is it more efficient to build ships than harbors?

With the cargo ships upgrade, every ship gives a 2% bonus to harbor capacity. I've noticed that my harbors cost ~290 scaffold, ~2800 slab, and ~4000 plate, which with the 105 ships I have give an additional 1437 wood storage.

On the other hand, building 3.94 ships provides about 8k wood storage for 100 scaffold, 150 plate, and 25 starcharts.

Clearly, I've built too many harbors as it is far more efficient to build ships at this point.

What is the point at which building ships becomes more efficient than building harbors? Does this at some point get hit with diminishing returns (which would then complicate the equation) or is it once you've hit that point, its always better to build ships?

For ease of calculation, the efficiency should probably be restricted to scaffold to make the comparisons easier unless the other materials become a much more significant factor.

• As a matter of fact, there is no diminishing in the 2% of the ships. Also, the building cost factor is the same for all resources, so if a resource is dominant in the beginning, it will stay dominant. Oct 3, 2014 at 17:12
• @Mathias711 Trade ships do have diminishing returns... they diminish toward a 225% increase in harbor capacity, plus some bonus based on the number of reactors you have. Oct 3, 2014 at 21:01
• @Brilliand Hah. I'm about 95% through rewriting my answer. Got home, looked at the code, did the math, etc. Oct 3, 2014 at 21:03
• @Brilliand Again, I haven't got that far, but I cannot find the diminishing part in the code. Where is it located (out of genuine interest, not trying to be an ass). Oct 3, 2014 at 21:51
• @Mathias711 there's probably a good question there (that I'd read and up vote too) about the nature of the diminishing returns, what it effects and where in the code that is.
– user177
Oct 3, 2014 at 21:53

Ships are almost always the better idea; the limiting factor will usually be starcharts once you start building them a ton. Their effect doesn't diminish, and their cost never goes up. In fact, as you build workshops/factories, the cost per ship goes down, effectively, because you get more per craft.

At very low numbers of harbours, and very large numbers of ships, the numbers almost certainly do tip the other way. In practice, that's unlikely to happen, as starcharts don't become truly plentiful prior to SETI, by which point you'll have a bunch of harbours.

All the above being said, though, if you need storage, and you've run out of starcharts, then harbours certainly aren't a bad idea.

So, I've gotten home, looked at the code, and... the above wasn't entirely right.

Firstly, Cargo Ships (as of this writing) is only worth +1% to harbor capacity per ship. I've reported the bug, time will tell whether the upgrade description is wrong, or the code.

Secondly, the Cargo Ship boost is subject to diminishing returns; the cap is 225%, with the Reactor Vessel upgrade increasing it by 5% per reactor. This means that your first 168 ships are working at full power, and past that, the function described here applies.

Still, 168 is a decent number of ships, so I still sat down and did some math for their costs in plates and scaffolds, since those are the two resources they both cost.

If you have no ships yet:

• For Scaffolds, you need 30 harbours before buying ships is cheaper.
• For Plates, you need only about 18.

If you already have twenty ships:

• For Scaffolds, you need 32 harbours before buying ships is cheaper.
• For Plates, you need only about 19.

At a hundred ships:

• For Scaffolds, you need 35 harbours before buying ships is cheaper.
• For Plates, you need only about 21.

Thus, around 20-30 harbours, it suddenly becomes profitable to start buying ships en masse, at least until you hit the diminishing returns a fair bit.

Overall, though, I think my original answer's advice still stands; buy both. Star Charts will usually be the limit to your ship-buying anyway, and they do have other uses:

• Each ship increases the chance of titanium when trading with zebras. Chance is (15 + (0.35 * ships))% No diminishing returns here (I checked), though it stops being a benefit once you hit 100%, which is at 243 ships
• A ship is needed to unlock Zebras for trading in the first place. Unlocking zebras also unlocks the Caravanserai upgrade (though, the Navigation tech will generally unlock Caravanserai first).
• A hundred ships are needed to unlock trade with Spiders
• Trade ships also boost the quantity of titanium from trading with Zebras. The titanium obtained is 1.5*(1+ships*0.02), no diminishing returns. Oct 3, 2014 at 22:15
• I unlocked `Caravanserai` before getting a ship or getting Zebras. Nov 3, 2014 at 8:40
• and here I am with 500k ships Apr 21, 2017 at 21:34