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.
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
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
- Enter job ID, Stage A minutes and Stage B minutes on each line, in your planned sequence.
- Optionally enter a cutoff. A job counts when it finishes Stage B at or before that minute.
- Compare the entered and Johnson orders, then inspect an individual job on both timelines.
- 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
Production Cycle Time & Batch Capacity Planner
Compare production cycle time, whole-lot shift output and bottleneck timing for two process sequences. See when planned batches finish and how much demand fits.
Critical Path Calculator
Plan finish-to-start dependencies, find critical chains and compare a changed activity duration. Explore Gantt timing, waiting lags and shared float.
OEE Calculator
Calculate overall equipment effectiveness across production periods. Inspect availability, performance, first-pass quality and equivalent time losses.
