Try something like this:

with_variable(
    'B',
    overlay_intersects(
        'PolyB layer name / id', -- set inside quotes PolyB layer name or id
        $geometry
    )[0],
    area(intersection($geometry, @B)) / area(union($geometry, @B))
)
Answer from Mayo on Stack Exchange
🌐
Omni Calculator
omnicalculator.com › math › union-intersection
Union and Intersection Calculator
December 17, 2025 - The union and intersection calculator is here to find the union and intersection of up to three sets: either in interval notation or by inputting individual elements.
People also ask

How do I find the union and intersection of two sets?

To find the union and intersection of two sets, you need to:

  1. List all elements from the first set.
  2. Add the elements from the second set.
  3. Cross out any repetitions (i.e., leave one copy of each).
  4. For every element, check if it's in the sets:
    • The union gathers those that appear in at least one; and

    • The intersection gathers those that appear in both.

  5. Enjoy having found the union and intersection of two sets.
🌐
omnicalculator.com
omnicalculator.com › math › union-intersection
Union and Intersection Calculator
How do I find the union and intersection of intervals?

To find the union and intersection of two intervals, you need to:

  1. Draw the number line.

  2. Mark the endpoints of the first interval.

  3. Color the line between those points.

  4. Mark the endpoints of the second interval.

  5. Color the line between those points using a different color.

  6. The left endpoint of:

    • The union is the leftmost of the left interval endpoints; and
    • The intersection is the rightmost of the left interval endpoints.
  7. The right endpoint of:

    • The union is the rightmost of the right interval endpoints; and
    • The intersection is the leftmost of the right interval endpoints.
  8. For the intersection, if the left endpoint is larger, the intersection is empty.

  9. Mark the endpoints as open or closed, depending on the initial data.

🌐
omnicalculator.com
omnicalculator.com › math › union-intersection
Union and Intersection Calculator
What is the difference between union and intersection?

On the one hand, the union gathers all the elements occurring in at least one of the sets. As such, all of them are its subsets. For example, the union of two sets, with one entirely contained in the other, is equal to the larger one.

On the other hand, the intersection gathers all the elements common to each and every one of the sets. As such, it's a subset of each of them. For instance, the intersection of two sets with one entirely contained in the other is equal to the smaller one.

🌐
omnicalculator.com
omnicalculator.com › math › union-intersection
Union and Intersection Calculator
🌐
AtoZmath
atozmath.com › SetTheory.aspx
Union of sets calculator
Union of sets calculator - for A = {1,2,3,4,5}, B = {3,4,5,6}, C = {3,6,7,8}, find Union of sets, eg. A union B. step-by-step online
🌐
MathsisFun
mathsisfun.com › sets › › set-calculator.html
Set Calculator
Math explained in easy language, plus puzzles, games, quizzes, videos and worksheets. For K-12 kids, teachers and parents.
🌐
AI Math Calculator
aimathcalculator.com › home › number theory & discrete math › discrete-mathematics › set calculator
Set Calculator — Union, Intersection, Difference, Complement
October 5, 2025 - Set Calculator - Union Intersection Difference Sets — compute A∪B, A∩B, A\B, complements, Cartesian products, and cardinality with step-by-step set operations.
Find elsewhere
🌐
Mathway
mathway.com › popular-problems › Algebra › 914583
Find the Intersection of the Sets {5,6,7,8,9} union {1,2,3,4} | Mathway
Free math problem solver answers your algebra, geometry, trigonometry, calculus, and statistics homework questions with step-by-step explanations, just like a math tutor.
🌐
Appspot
set-algebra.appspot.com
Set Algebra Calculators
(4.) Copy and paste the expression you typed, into the small textbox of the calculator. (5.) Click the "Submit" button. (6.) Check to make sure that it is the correct set you typed. (7.) Review the answer (Venn Diagram). Using the Venn Diagram Generator · Type: A ∪ B · as A Union B · Type: A ∩ B · as A Intersect B ·
🌐
Basic Mathematics
basic-mathematics.com › intersection-of-sets-calculator.html
Intersection of Sets Calculator
Just enter your numbers in the boxes and click on the button that says Find Intersection. This calculator accepts both negative and positive numbers and/or any other symbols you enter. Set 1: Add Another Set Find Intersection · Try to find the intersection on your own before using this calculator. Union of sets calculator ·
🌐
Desmos
desmos.com › calculator › vq8blapfw7
Union & Intersection | Desmos
Explore math with our beautiful, free online graphing calculator. Graph functions, plot points, visualize algebraic equations, add sliders, animate graphs, and more.
🌐
Set Calculator
setcalculator.com
Union, Intersection, and Difference of Sets Calculator
Get the union, intersection, and difference of two sets with this online javascript calculator, with explanations and examples.
🌐
Statology
statology.org › home › union and intersection probability calculator
Union and Intersection Probability Calculator
August 23, 2021 - Probability of event A: P(A) Probability of event B: P(B) Probability that event A does not occur: P(A'): 0.7 Probability that event B does not occur:
🌐
Molbiotools
molbiotools.com › listoperations.php
LIST OPERATIONS - Set operations with item lists: intersection, subtraction, and union
An online tool to do intersection, union and subtraction operations with data lists. Also provides additional functions applicable to user-provided data, namely duplicate row removal, and item sorting and shuffling.
🌐
AtoZmath
atozmath.com › SetTheory.aspx
Intersection of sets calculator
Intersection of sets calculator - for A = {1,2,3,4,5}, B = {3,4,5,6}, C = {3,6,7,8}, find Intersection of sets, eg. A intersect B. step-by-step online
🌐
Calculator.net
calculator.net › home › math › probability calculator
Probability Calculator
To find out the union, intersection, and other related probabilities of two independent events.
🌐
Cscx
cscx.org › set-calc
set-calc – Set calculator – Computer Science by Example
For each line of input your program should produce a line of output. For member and subset operations, your program should print yes or no. For union, intersection and difference, your program should print the resulting set with elements separated by commas (,) and surrounded by curly brackets ({}).
🌐
Pinecalculator
pinecalculator.com › union-and-intersection-calculator
The Best Union and Intersection Calculator - 100% Free Solver
Pine Calculator solves 1000+ problems from maths & science to finance and business to health. We provide fast easy n juicy solutions for all of your problems!
🌐
Eguruchela
eguruchela.com › math › calculator › intersection-of-set.php
Calculate Intersection of Two Sets
Union of set(AB) Calculate A Δ B · Venn diagram · Venn diagram(3S) Go to index page · Calculator will find the Intersection of Set(A Intersect B). The two sets of events as: A={1,2,3,4} and · B={3,4,6,7,8} The intersection of the sets we get · A ∩ B = {3, 4} Set is the relation of some given data or say set contains the elements of similar type or category.
🌐
Danielsoper
danielsoper.com › statcalc › calculator.aspx
Free Union Probability Calculator - Free Statistics Calculators
This calculator will compute the probability of event A or event B occurring (i.e., the union probability for A and B), given the probability of event A, the probability of event B, and the joint probability of events A and B.