Calculate the Jaccard coefficient from two set sizes and their intersection, or enter element lists to find union, overlap, and similarity.

Jaccard Coefficient Calculator

Set Sizes
Element Lists

Enter any 3 values to calculate the missing variable.

Jaccard Coefficient Formula

The following formula is used to calculate the Jaccard Coefficient.

JC = Ni / (Na+Nb-Ni)
  • Where JC is the Jaccard Coefficient
  • Na is the number of elements in set A 
  • Nb is the number of elements in set B 
  • Ni is the number of intersecting elements 

To calculate the Jaccard coefficient, divide the number of intersecting elements by the result of the number of elements in set A plus the number of elements in set B minus the number of intersection elements.

How to Calculate Jaccard Coefficient?

The following example problems outline how to calculate Jaccard Coefficient.

Example Problem #1

  1. First, determine the number of elements in set A.
    • The number of elements in set A is calculated to be : 4.
  2. Next, determine the number of elements in set B.
    • The number of elements in set B is measured to be: 5.
  3. Next, determine the number of intersecting elements.
    • The number of intersecting elements is found to be: 2.
  4. Finally, calculate the Jaccard Coefficient using the formula above: 

JC = Ni / (Na+Nb-Ni)

The values given above are inserted into the equation below and the solution is calculated:

JC = 2 / (4+5-2) = 2 / 7 ≈ 0.2857


Example Problem #2

The variables needed for this problem are provided below:

number of elements in set A = 7

number of elements in set B = 10

number of intersecting elements = 3

This example problem is a test of your knowledge on the subject. Use the calculator above to check your answer. 

JC = Ni / (Na+Nb-Ni) = 3 / (7+10-3) = 3 / 14 ≈ 0.2143