Enter the total number of cycles and the total number of instructions into the Calculator. The calculator will evaluate the Clock Cycles Per Instruction. 

Clock Cycles Per Instruction Formula

CPI = C / I

Variables:

  • CPI is the Clock Cycles Per Instruction (cycles/instruction)
  • C is the total number of cycles
  • I is the total number of instructions

To calculate Clock Cycles Per Instruction, divide the number of cycles by the number of instructions.

How to Calculate Clock Cycles Per Instruction?

The following steps outline how to calculate the Clock Cycles Per Instruction.


  1. First, determine the total number of cycles. 
  2. Next, determine the total number of instructions. 
  3. Next, gather the formula from above = CPI = C / I.
  4. Finally, calculate the Clock Cycles Per Instruction.
  5. After inserting the variables and calculating the result, check your answer with the calculator above.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

total number of cycles = 6

total number of instructions = 7