Two-Stage Job Sequencing Calculator & Johnson’s Rule

Enter each job's time at two stations, in the order you plan to run it. Johnson’s rule finds an order with the earliest possible last-job finish. Use the shared timeline to inspect operation timing and see which job bounds each schedule.

Job sequencing

Find the fastest order for two shared stages

Compare your job order with Johnson’s rule and see when each stage works or waits.

Jobs and cutoff

Use one row per job. Enter ID, Stage A minutes, Stage B minutes.

Optional. Jobs ending exactly here count as complete.

An optimized order finishes sooner.

Finish time and completed jobs

6 min saved for the last job to finish.

Entered

A → B → C → D

Finish
30 min
Complete by cutoff
3 of 4
Stage A idle
8 min
Stage B idle
10 min
Total job wait
2 min
Jobs that set finish
C

Johnson order

D → B → C → A

Finish
24 min
Complete by cutoff
4 of 4
Stage A idle
2 min
Stage B idle
4 min
Total job wait
4 min
Jobs that set finish
A
Entered and optimized job timelines
Two schedules on one time scaleEntered finish 30 minutes. Johnson order 24 minutes.Entered AA · 0 to 7 minB · 7 to 10 minC · 10 to 20 minD · 20 to 22 minEntered BA · 7 to 9 minB · 10 to 18 minC · 20 to 24 minD · 24 to 30 minJohnson AD · 0 to 2 minB · 2 to 5 minC · 5 to 15 minA · 15 to 22 minJohnson BD · 2 to 8 minB · 8 to 16 minC · 16 to 20 minA · 22 to 24 minStartEntered finish

A has a dark outline. Hatched gaps show idle time. Both orders share a scale through 30 min. The dashed line marks the cutoff.

A · Entered

Stage A
0 to 7 min
Stage B
7 to 9 min
Wait between stages
0 min
Timing bound
7 + 20 = 27 min
Sets schedule finish
No

A · Johnson order

Stage A
15 to 22 min
Stage B
22 to 24 min
Wait between stages
0 min
Timing bound
22 + 2 = 24 min
Sets schedule finish
Yes

A job’s timing bound adds Stage A work through that job to Stage B work from that job onward.

Export the sequencing audit

View CSV text

How to use this calculator

  1. Enter job ID, Stage A minutes and Stage B minutes on each line, in your planned sequence.
  2. Optionally enter a cutoff. A job counts when it finishes Stage B at or before that minute.
  3. Compare the entered and Johnson orders, then inspect an individual job on both timelines.
  4. Download the schedule to keep exact start and finish times, idle gaps, waits and timing bounds.

The Formula

The mathematical logic powering this calculation is:

Give every job a first-stage duration a and a second-stage duration b. Johnson’s rule groups jobs with a ≤ b at the front in ascending a and jobs with a > b at the back in descending b. Jobs sharing a sort key keep their entered relative order.

For a specific sequence, each job starts Stage A when its predecessor finishes Stage A. Stage B starts at the later of that job's Stage A finish and the preceding Stage B finish. Add the respective duration to each start. The final Stage B finish is the makespan. For each job, adding the Stage A durations through that job to the Stage B durations from that job onward gives a lower bound on that order's finish. The largest such bound equals the makespan. Its job or jobs are listed with the schedule.

All jobs are available at time zero. Each station handles one job at a time. A job can wait after Stage A, and each station processes the jobs in the same order. Durations are fixed per job and stage across both orders. A setup time that depends only on that job can be included in its duration. This model assumes no release delays, changeovers that depend on the previous job, shift interruptions or buffer limits.

Use one to twelve jobs with positive durations up to 100,000 minutes per stage and up to three decimal places. The optional cutoff is inclusive. It counts completed jobs for each displayed order. Johnson’s rule minimizes the last finish time. Completion counts, total wait and idle time describe the selected orders and can differ among tied optimal orders.

Worked Example

If you input:

  • Jobs: A (7, 2), B (3, 8), C (10, 4), D (2, 6)
  • Cutoff: 24 min

Result:

A → B → C → D finishes in 30 minutes. D → B → C → A finishes in 24. Three jobs in the entered order and all four in the Johnson order complete by minute 24.

Frequently Asked Questions

Why does a different job order finish sooner?

The duration of each operation stays the same. A new order can keep the second stage supplied earlier or reduce gaps between its jobs.

Can two orders both achieve the earliest finish?

Yes. The calculator constructs one optimal order with stable tie handling. The entered order can also achieve the same earliest finish.

What does a job that sets the finish mean?

All Stage A work through that job and all Stage B work from that job onward must happen in order. A job sets the finish if the length of that chain equals the schedule's last finish.

Does the rule maximize output by a shift cutoff?

The rule minimizes the time when the last job finishes. The before-cutoff counts help compare the two orders shown. A different objective can lead to a different order.

Similar Calculators