Skip to main content

Critical Path Calculator

API reference

Find a project's critical path with the Critical Path Method (CPM): enter activities, durations and predecessors to get earliest/latest start and finish, total and free float, the project duration and a Gantt chart. Supports PERT three-point estimates.

Input

One activity per line: ID, duration, predecessors, description. Separate predecessors with spaces or semicolons ("-" for none). For a PERT estimate, write the duration as optimistic/likely/pessimistic, e.g. 2/4/8. Tab-separated rows pasted from a spreadsheet work too.

Output

Gantt chart

Your Gantt chart will appear here.

Summary
MetricValue
No data yet
Schedule
ActivityDescriptionDurationESEFLSLFTotal floatFree floatCritical
No data yet
Gantt chart SVG
 
Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/critical-path-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "activities": "A, 3, -, Design\nB, 5, A, Build\nC, 2, A, Write do…",
    "timeUnit": "days"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `critical-path-calculator` tool (Critical Path Calculator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/critical-path-calculator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="Critical Path Calculator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

The Critical Path Method (CPM) finds the longest chain of dependent activities in a project. That chain sets the shortest possible finish time, and any delay to an activity on it delays the whole project. This calculator runs the full CPM analysis from a plain list of activities and draws a Gantt chart of the result.

How to use it

  1. Enter one activity per line as ID, duration, predecessors, description, for example B, 5, A, Build.
  2. Separate several predecessors with spaces or semicolons (D, 1, B C). Use - or leave the column empty when an activity has none.
  3. Pick the time unit. The results update as you type.

You can paste rows straight from a spreadsheet, since tab-separated columns work too. A zero-duration activity is drawn as a milestone diamond.

What you get

  • Project duration: the earliest the whole project can finish.
  • Critical path: the activities with zero float, in order. When two chains tie, both are listed.
  • Schedule table: for each activity, its earliest start (ES), earliest finish (EF), latest start (LS), latest finish (LF), total float and free float. Download it as CSV.
  • Gantt chart: critical activities in red, the rest in blue, with each activity's float shown as a grey band after it. Download it as SVG.

Total float vs free float

Total float is how long an activity can slip before it delays the project end date. Free float is how long it can slip before it delays the next activity. An activity can have total float but no free float. That means it shares its slack with the activities after it, and using that slack takes it away from them.

PERT three-point estimates

If a duration is uncertain, write it as optimistic/most likely/pessimistic, for example 2/4/8. The calculator uses the PERT expected time, (o + 4m + p) ÷ 6, as the duration. It also reports the critical path's standard deviation and a 95% confidence finish, a date you can commit to with more confidence than the average. When several critical paths tie, the one with the most variance is used.

How it's calculated

The forward pass gives each activity an ES equal to the latest EF of its predecessors, and EF = ES + duration. The backward pass starts from the project end and gives each activity an LF equal to the earliest LS of its successors, and LS = LF − duration. Total float = LS − ES, and activities where it is zero are critical. If the dependencies form a loop, the calculator names the activities involved so you can fix them.

Everything runs in your browser and nothing is uploaded.

cpmpertproject scheduleproject managementfloatslacknetwork diagramganttearliest startthree-point estimate

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.