A comprehensive tool for project scheduling and critical path analysis
CPM Calculator
CPM Explanation
Instructions
Example Project
Activity Input
Enter your project activities below. For each activity, specify its ID, duration, and predecessors.
Activity ID
Duration (days)
Predecessors
CPM Analysis Results
Summary
Project Duration:0 days
Critical Path:
Visualization
Normal view showing the complete project network with critical path highlighted.
Network Diagram
Regular Activity
Critical Activity
Detailed Activity Analysis
Activity
Duration
Early Start (ES)
Early Finish (EF)
Late Start (LS)
Late Finish (LF)
Float
Critical
Calculation Steps
Forward Pass+
The Forward Pass calculates the Early Start (ES) and Early Finish (EF) times for each activity by moving through the network from the project start to the end.
Start with activities that have no predecessors. Set their ES = 0.
Calculate EF = ES + Duration.
For each subsequent activity, set ES = maximum EF of all its predecessors.
Calculate EF = ES + Duration.
Continue until all activities have ES and EF values.
ES = max(EF of all predecessors)
EF = ES + Duration
Backward Pass+
The Backward Pass calculates the Late Start (LS) and Late Finish (LF) times for each activity by moving backward through the network from the project end to the start.
Start with activities that have no successors. Set their LF = project duration (maximum EF).
Calculate LS = LF - Duration.
For each preceding activity, set LF = minimum LS of all its successors.
Calculate LS = LF - Duration.
Continue until all activities have LS and LF values.
LF = min(LS of all successors)
LS = LF - Duration
Float Calculation+
Float (or slack) is the amount of time an activity can be delayed without delaying the project completion date.
Float = LS - ES
or
Float = LF - EF
Activities with zero float are on the critical path.
Critical Path Determination+
The Critical Path is the sequence of activities with zero float that determines the project duration.
Critical Path Method (CPM) Explained
What is CPM?
The Critical Path Method (CPM) is a project management technique used to plan and schedule project tasks. It identifies critical and non-critical tasks to prevent time-frame problems and process bottlenecks.
Key features of CPM include:
Identifying the longest path of planned activities to the end of the project
Determining which tasks are "critical" (cannot be delayed)
Calculating "float" or "slack" time for non-critical activities
Helping project managers focus on activities that affect the project completion date
CPM Calculation Process
Define Activities and Their Relationships
Break down the project into specific tasks or activities and determine their dependencies.
Each activity has a duration (time required to complete)
Identify predecessor activities (tasks that must be completed before another can start)
Forward Pass Calculation
Calculate the earliest times each activity can start and finish.
Early Start (ES) of first activity = 0
Early Finish (EF) = Early Start (ES) + Duration
ES of successor activity = Maximum EF of all its predecessors
Backward Pass Calculation
Calculate the latest times each activity can start and finish without delaying the project.
Late Finish (LF) of last activity = its Early Finish (EF)
Late Start (LS) = Late Finish (LF) - Duration
LF of predecessor activity = Minimum LS of all its successors
Calculate Float (Slack)
Determine how much delay can be tolerated for each activity.
Float = Late Start (LS) - Early Start (ES)
or
Float = Late Finish (LF) - Early Finish (EF)
Activities with zero float are on the critical path.
Identify the Critical Path
The critical path is the sequence of activities with zero float that determines the minimum project duration.
Any delay in a critical activity will delay the entire project.
CPM vs. PERT
While CPM uses a single deterministic time estimate for each activity, PERT (Program Evaluation and Review Technique) uses three time estimates (optimistic, most likely, pessimistic) to handle uncertainty in activity durations.
How to Use the CPM Calculator
Enter Activity Details
For each activity in your project:
Activity ID: Enter a unique identifier (number, letter, or name)
Duration: Enter the time required to complete the activity (in days or other consistent time units)
Predecessors: Enter the IDs of activities that must be completed before this one can start
For the first activity, leave blank or enter "none"
For activities with multiple predecessors, separate them with commas (e.g., "A,B,C")
Add More Activities
Click the "Add Activity" button to add more activities to your project.
You can also remove activities by clicking the "X" button next to each activity.
Calculate the Critical Path
After entering all activities, click the "Calculate Critical Path" button.
The calculator will perform the forward and backward passes to determine ES, EF, LS, LF, and float for each activity.
Interpret the Results
The results table shows:
Early Start (ES): The earliest time an activity can start
Early Finish (EF): The earliest time an activity can finish
Late Start (LS): The latest time an activity can start without delaying the project
Late Finish (LF): The latest time an activity can finish without delaying the project
Float: The amount of time an activity can be delayed without affecting the project end date
Critical: Indicates whether the activity is on the critical path
Activities with zero float are highlighted as critical and form the critical path.
Visualization Options
Use the visualization controls to understand different aspects of CPM:
Normal View: Shows the complete project network with critical path highlighted
Forward Pass: Visualizes the calculation of ES and EF times
Backward Pass: Visualizes the calculation of LS and LF times
Float Calculation: Shows float values for all activities
Tips for Project Managers
Focus resources on critical path activities to ensure on-time project completion
Regularly monitor activities with low float as they can become critical
Use float on non-critical activities to optimize resource allocation
Update your CPM analysis when changes occur to project scope, activities, or durations
Example Project: Website Development
Let's analyze a website development project using CPM.
Project Activities
Activity ID
Description
Duration (days)
Predecessors
A
Requirements Gathering
5
-
B
Design
10
A
C
Frontend Development
15
B
D
Backend Development
12
B
E
Testing
8
C,D
F
Deployment
3
E
Step-by-Step CPM Analysis
Forward Pass
Activity A: ES = 0, EF = 0 + 5 = 5
Activity B: ES = 5, EF = 5 + 10 = 15
Activity C: ES = 15, EF = 15 + 15 = 30
Activity D: ES = 15, EF = 15 + 12 = 27
Activity E: ES = max(30, 27) = 30, EF = 30 + 8 = 38