Quick guide
How to use this calculator
- Enter the required right and up steps.
- The path may use only those two directions.
- Read the number of distinct shortest paths.
Calculation method
Choose which steps are right steps
Every shortest path contains r+u steps. Choosing the r positions occupied by right steps determines the path.
Worked example
Cross a 3 by 2 grid
Every shortest path uses three right steps and two up steps.
C(5,3) = 10
Supported inputs
Precision and limits
Discrete domain
Inputs are whole counts. Negative, fractional, grouped, and scientific-notation inputs are rejected.
Exact integers
Results use arbitrary-precision integers and are never rounded. Inputs and output size are bounded to keep the page responsive.
Obstacles
This calculator assumes an unobstructed rectangular grid and does not count diagonal or backward moves.
