Calculate n(A − B)
Enter elements of Set A and Set B (comma-separated). The tool computes A \ B (elements in A not in B) and its count.
Offline
Elements are trimmed and duplicates in A will be ignored for counting. Use text or numbers. Commas separate elements.
Elements are trimmed. Elements matching A (exact match) will be removed from the difference.
Touch friendly buttons • Dynamic result
Result — A − B
—
Count
0
Example inputs
A =
B =
Result (A − B) =
1, 2, 3, 4
B =
3, 4, 5
Result (A − B) =
1, 2
and n(A − B) = 2.
Copied to clipboard