In this article, we talked about the Cities Skylines 2: City Layout Guide. Let’s get right into our writing!

## Cities Skylines 2: City layout Guide

### Introduction

Which of the two square grids below do you think has more zoning cells?

Each covers the same footprint: 1008 metres for each edge, about 100 hectares.

The one on the left sure *looks* like the obvious choice. It leaves exactly 12 zoning cell widths between the roads, the most you can get without leaving a gap. That’s one of the easiest lengths to draw with the road tool, since you just have to line up the zoning circles. It even happens to be the widest width you can get with the parallel road mode.

But if you count them all up the one on the right actually has *more* zoning cells despite the big holes in the middle of each block. The right is cheaper to build and maintain, too, since it has less roadway.

The left has 12²×9² = 11664 cells; the right has (16² – 4²)×7² = 11760 cells.

Can we do better? Let’s calculate it! (Spoiler: Yes, we can.)

### Optimal Square Grids

First, let’s define some variables:

- x is the length of the road on one side of a block, as reported by the road tool
- z is the length of zonable frontage
- h is the length of the side of the hole in the middle of the zoning
- W is the width of the road being used

**Pedantic math aside: **

the below is going to assume x > z > h ≥ 0 for simplicity. It’s possible to fix that by using things like h = max(0, z – 96m), but that no longer has a contiguous derivative, which is a pain. The maximum we’re looking for is in the convenient part of the parameter space anyway. That’s unsurprising, since z < 96m just means a higher road-to-zoning ratio without any offsetting bonuses elsewhere.

Using this, the zonable area in each block is the space inside the block (z²) minus the part too far from the roads (h²). But both of these are directly related to the block length, as the frontage is the block size minus the road width (z = x – W), and relatedly the hole is the frontage minus how far the zoning goes (h = z – 2 × 6 x 8m = x – W – 96m).

The *density*, which we’re trying to optimize, is thus

- (z² – h²) / x²
- = ((x – W)² – (x – W – 96)²) / x²
- = 192×(x – W + 48) / x²

How do we maximize it? Calculus! The maximum is where the derivative is zero:

- 0 = d/dx 192×(x – W + 48m) / x²
- 0 = d/dx (x – W + 48m) / x²
- 0 = (2W – x + 96) / x³
- 0 = 2W – x + 96
- x = 2W + 96m

Plugging that answer into the previous formula for the hole simplifies interestingly:

- h = x – W – 96m
- h = 2W + 96m – W – 96m
- h = (2W – W) + (96m – 96m)
- h = W

In other words, **to make an optimal square grid, leave a hole in the middle the same size as the road you’re using**.

Let’s look at how that works for a small road:

Block Size | Density | Road Needed |
---|---|---|

112m (14u) | ³⁶⁄₄₉ ≈ 73.5% | ²⁸⁄₉ ≈ 3.11 m/cell |

128m (16u) | ¾ = 75% | ⁸⁄₃ ≈ 2.67 m/cell |

144m (18u) | ²⁰⁄₂₇ ≈ 74.1% | ¹²⁄₅ = 2.40 m/cell |

So with 16m roads, by using the optimal square grid you **get about 2% more zoning cells in the same area** yet **pay about 14% less for roads** (both up-front and in upkeep), compared to the square grid without the hole in the middle.

And while 2% may not sound like much, remember that density helps everything with a service area. If you place a signature building with “+4 Well-Being within 1 km”, for example, more density means it can give that bonus to more

Final answer

Thus for the best square grid, use a block size of

**112m for tiny (8m) roads**like the gravel road, giving a density of ⁶⁄₇ ≈ 85.7%**128m for small (16m) roads**like the two-lane road, giving a density of ¾ = 75%**144m for medium (24m) roads**like the four-lane road, giving a density of ⅔ ≈ 66.7%**160m for large (32m) roads**like the six-lane road, giving a density of ⅗ = 60%**176m for extra-large (40m) roads**like the eight-lane road, giving a density of ⁶⁄₁₁ = 54.6%

The Cost of Wider Roads

The previous section had lots of math. While that’s great for finding the one best answer, it can be hard to get an intuition from it.

Here’s a graph of the resulting densities for square grids using 8m (red), 16m (purple), 24m (green), 32m (orange), and 40m (blue) roads:

The thing that emphasizes to me the most is just how much density you lose to wider roads. A far-from-optimal block size using a narrower road will *easily* beat the optimal square block with a wider road.

Here are the ranges of block sizes where a square grid will give you particular target densities:

Target Density | Large Roads | Medium Roads | Small Roads | Tiny Roads |
---|---|---|---|---|

≥60% | 160 meters | 107 – 210 meters | 71 – 231 meters | 36 – 247 meters |

≥65% | Impossible | 125 – 171 meters | 83 – 201 meters | 42 – 220 meters |

≥70% | Impossible | Impossible | 98 – 172 meters | 49 – 195 meters |

≥75% | Impossible | Impossible | 128 meters | 60 – 173 meters |

≥80% | Impossible | Impossible | Impossible | 76 – 150 meters |

≥85% | Impossible | Impossible | Impossible | 103 – 123 meters |

To make an extreme example of that, the left grid below is actually *more* dense than the one at the right, because the wide roads just take up *so* much space:

As such, **never zone on large (or even medium, let alone extra-large) roads**.

If you feel a need for more lanes, consider using a grid of smaller one-way roads. For example, a 80m grid using 2-lane one-way roads (as seen at the right) has 64% density which, despite not being optimal, is better than the 60% density for the grid with large roads. And its traffic likely works better too, as there are far fewer conflict points for intersecting one-way roads compared to two-way roads.

### Why wide roads exist

The purpose of medium and large roads is to be **collectors** and **arterials**, not for zoning. The higher capacity and higher speed is there for people who need to go a further distance. Such roads are best when they have

**No driveways**: The speed of traffic is high enough that people shouldn’t be judging whether they have space to fit in when leaving. And you don’t want people stuck between trucks slowing down to do deliveries (nor garbage trucks slowing down to collect, etc.)**No uncontrolled lefts**: Whether from a side road or the main road, the road is busy enough that waiting for a gap in traffic is impractical. That means that any left has a light or roundabout, aka any intersection without one of those has all the left turns disabled. Similarly, straight across the wide road is only allowed with a light/roundabout.**Few intersections**: The small roads have lots of intersections to get you everywhere. The wide roads should have sufficient space between intersections that traffic can accelerate enough to take advantage of the higher speed limits. Just think about how annoying it is when you’re driving along and hit a red light every 100 metres. The extra space is also needed to give vehicles enough space to change lanes when needed.

And you’ll notice that all these issues apply to *plopped* buildings too. The only buildings that make sense on wide roads are those where the traffic is very low or highly urgent, and there’s very few of those. A Radio Mast would be ok (1 workplace), a Transformer Station (which doesn’t even *need* a road), maybe a Fire House (8 workplaces, but the engine traffic is important). But a Fire *Station* has traffic from 60 workplaces, for example, a Police Station has low priority jail traffic, etc.

Indeed, you might consider just using the Two-way Highways (perhaps with Sound Barriers) in many of these situations. Then you *can’t* zone on them, which also helps keep the zoning grid from getting confused by the extra road. Just make sure to remember to still provide good pedestrian connections so people aren’t *forced* to get into their cars. The best public transit in CSⅡ, **by far**, is walking.