Direction Sense Problem Solver

Describe walks and turns in plain words or with buttons, see the path drawn on a grid and get the final facing, distance from the start and direction with steps.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Describe the walk

    Type the moves in plain English or load an example.

  2. 2
    Check what was read

    Fix any part listed as not understood.

  3. 3
    Edit with buttons

    Use the step editor to add turns and walks or change distances.

  4. 4
    Read the results

    See the final facing, the distance and direction from the start and the total walked.

  5. 5
    Look at the map

    Follow the path on the grid and the dashed line back to the start.

  6. 6
    Practise

    Use Practice for generated walks with 2 to 5 moves.

About this tool

Direction sense questions describe a short walk, such as "Ravi walks 10 m north, turns right and walks 6 m", and ask where Ravi ends up, which way he faces, or how far he is from the start. They are standard in reasoning sections of bank, SSC, railway and placement tests, and they reward careful drawing. This solver does the drawing for you. Type the moves in plain English or build them with buttons: face a direction, turn left or right by 90 or 45 degrees, turn around, and walk a distance. The path appears on a grid with a compass, arrows for each leg and a dashed line straight back to the start. The tool gives the direction faced at the end, the shortest distance to the start by Pythagoras, the direction of the end point from the start (and the reverse), the total distance walked and each step in words.

Who it is for

Candidates for reasoning and aptitude tests, school students learning compass directions and bearings, and puzzle fans.

How to describe moves

Write the moves as you would read them in a question: "walks 5 km east", "turns left", "turns right again and walks 3 m", "turns around", "turns 45 degrees right", "facing south". The solver splits the text at commas, full stops and "then", recognises the eight compass directions, left, right, clockwise, anticlockwise and around, and any distance with or without a unit. Anything it cannot read is shown so you can rephrase it. The step editor lets you build or adjust the walk with buttons instead.

Turning rules

Turning right always means turning clockwise, and left anticlockwise, whatever direction you face. A walker facing south who turns right is now facing west. A turn around is 180 degrees. The solver tracks the heading as a bearing from north, so 45-degree turns lead to directions such as north-east or south-west.

Distance and direction from the start

The final position is the sum of all the legs as east and north components. The shortest distance back is the hypotenuse of those two components, and the direction from the start uses the eight compass points, or an exact bearing when the answer falls between them. Many questions ask for the direction of the start from the end, which is the opposite direction; both are shown.

Worked example

Ravi walks 10 m north, turns right and walks 6 m, turns right again and walks 4 m, then turns left and walks 2 m. He ends 8 m east and 6 m north of the start, facing east. The shortest distance to the start is √(8² + 6²) = 10 m, and he is to the north-east of the start (bearing 53.1°).

Shadows

Some questions use the sun: in the morning the sun is in the east, so shadows fall to the west; in the evening they fall to the east. Use this to fix the first direction, then add the moves as usual.

Limits

The solver assumes a flat grid and straight walks, as test questions do. Wording outside the patterns above, such as "takes the second road on the left", needs to be rewritten as turns and distances. Directions between the eight compass points are given as bearings, not named points like "north-north-east".

Worked example

North 10, right 6, right 4, left 2: ends 8 m east and 6 m north, facing east, 10 m from the start.

Quick facts

Frequently asked questions

Does turning right always mean clockwise?

Yes. Whatever direction you face, a right turn is clockwise and a left turn anticlockwise.

How is the shortest distance found?

By adding the east-west and north-south parts of the walk and using Pythagoras: distance = √(east² + north²).

What is the difference between direction from the start and direction of the start?

The first is where the end point lies seen from the start; the second is the opposite direction, seen from the end point. Questions use both.

Can I use 45-degree turns?

Yes. Type "turns 45 degrees right" or use the 45° buttons; directions like north-east and south-west follow.

What units can I use?

Any; the solver works with the numbers and shows the unit you choose (m, km, steps).

How do shadow questions work?

In the morning the sun is in the east, so shadows point west; in the evening they point east. Use that to decide the first direction.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages