---
title: "Gradient and cant"
description: "How Track Anchors carry a gradient for even ramps and a cant for tilted curves, set by hand or worked out while laying track."
canonical_url: "https://wiki.nevercold.eu/en/create-optimized-rails/track/gradient-and-cant"
---
# Gradient and cant

> How Track Anchors carry a gradient for even ramps and a cant for tilted curves, set by hand or worked out while laying track.

Besides its direction, every Track Anchor carries two more values: a **gradient** in percent and a **cant** in
degrees. You set them in the [anchor window](https://wiki.nevercold.eu/en/create-optimized-rails/track/track-anchor#the-anchor-window) while no
track runs through the anchor, or the mod works them out when it places a new anchor at the end of new track.

<table>
<thead>
  <tr>
    <th>
      Value
    </th>
    
    <th>
      Range
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Gradient
      </strong>
    </td>
    
    <td>
      up to 25 % up or down
    </td>
    
    <td>
      Track leaves the anchor climbing or falling this steeply.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Cant
      </strong>
    </td>
    
    <td>
      up to 8° to either side
    </td>
    
    <td>
      Track at the anchor tilts sideways: one rail lies higher than the other.
    </td>
  </tr>
</tbody>
</table>

## Gradient

Track always leaves an anchor on the anchor's own gradient. A level anchor starts the track flat, an anchor at 5 %
starts it at 5 %. This is what makes **even ramps** possible:

![An even 5 % ramp over two anchors; the track runs through the middle anchor without a bend](https://wiki.nevercold.eu/create-optimized-rails/track/ramp.png)

<steps level="3">

### Set the gradient of the first anchor

Right-click the first anchor with the wrench and enter the gradient, for example 5. Positive climbs towards the
direction in the window.

### Click a spot on that gradient

5 % is one block up per 20 blocks. Select the anchor with track and click a spot that lies that much higher (or lower,
for a negative gradient). The track is a straight ramp, and the new anchor gets the same 5 %.

### Keep going

Continue from the new anchor the same way. The ramp runs on evenly over as many anchors as you like.

</steps>

If you click a spot that is not on the anchor's gradient, the track still reaches it: its gradient changes evenly from
the start's gradient to the one needed to arrive at the spot, and the new anchor takes that arriving gradient. From a
level anchor to a spot one block higher and 20 blocks ahead, for example, the track starts flat and arrives at 10 %;
the next piece then starts at 10 %. The gauge shows the average gradient of the piece, the
[height profile](https://wiki.nevercold.eu/en/create-optimized-rails/track/height-profile) its shape.

Limits: the average gradient of a connection and the gradient at which a new anchor arrives are both at most 25 %.
Beyond that Create answers "Slope too steep".

## Cant

In a curve, a canted track raises the **outer rail**, as on real lines. Create tilts the ties and rails about the
middle of the track, so the outer rail rises and the inner one sinks a little.

![A canted curve seen from its end: the outer rail lies higher](https://wiki.nevercold.eu/create-optimized-rails/track/cant.png)

### Cant while laying track

When track from an anchor to open ground is an arc, the **new anchor gets a cant to suit the arc's radius**, raising
the outer rail. The tighter the arc, the more cant, in half degrees:

<table>
<thead>
  <tr>
    <th>
      Radius of the arc
    </th>
    
    <th>
      Cant at the new anchor
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      30 blocks or less
    </td>
    
    <td>
      8°
    </td>
  </tr>
  
  <tr>
    <td>
      48 blocks
    </td>
    
    <td>
      5°
    </td>
  </tr>
  
  <tr>
    <td>
      60 blocks
    </td>
    
    <td>
      4°
    </td>
  </tr>
  
  <tr>
    <td>
      100 blocks
    </td>
    
    <td>
      2.5°
    </td>
  </tr>
  
  <tr>
    <td>
      240 blocks
    </td>
    
    <td>
      1°
    </td>
  </tr>
  
  <tr>
    <td>
      480 blocks or more
    </td>
    
    <td>
      none
    </td>
  </tr>
</tbody>
</table>

In general it is 240 divided by the radius, rounded to half a degree, at most 8°. Straight pieces get no cant.

The cant **runs in along the track**: between two anchors the tilt changes evenly from one anchor's cant to the
other's. An arc from a straight line therefore starts flat and reaches its full cant at its end. The next arc of the
same radius keeps that cant, and a straight piece after it lets the cant run out again.

Between two anchors, and between an anchor and Create's track, each end keeps the cant it has; Create's own track has
none.

### Cant by hand

In the anchor window you can give a free anchor any cant up to 8°. Positive raises the left rail, looking along the
direction in the window, negative the right one.

<note>

Cant is for the look of the line: trains take a canted curve at the same speed as an uncanted one. Which curves slow
trains down is explained in [Curve speed](https://wiki.nevercold.eu/en/create-optimized-rails/trains/curve-speed).

</note>

## Seeing gradient and cant

- The [gauge](https://wiki.nevercold.eu/en/create-optimized-rails/track/gauge) shows an anchor's gradient and cant, and the cant at both ends of
a curve ("Cant a° to b°").
- While you lay track, the [height profile](https://wiki.nevercold.eu/en/create-optimized-rails/track/height-profile) shows how the track runs
against the ground.
- With the wrench in hand, nearby track is [coloured by its gradient](https://wiki.nevercold.eu/en/create-optimized-rails/track/height-profile#gradient-colours).


## Sitemap

See the full [sitemap](https://wiki.nevercold.eu/sitemap.md) for all pages.
