The cost of an OSPF route is the accumulated value from one router to the destination network.

For example, in Figure 1, the cost to reach the R2 LAN 172.16.2.0/24 from R1 should be as follows:

The routing table of R1 in Figure 2 confirms that the metric to reach the R2 LAN is a cost of 65.