Pick's Theorem

Area = I + B/2 − 1  |  click the grid to add vertices, drag to move them

Shoelace O(n) Boundary Σ gcd Interior via Pick Integer-exact
Vertex Boundary point (B) Interior point (I) Outside

Controls

Click empty grid = add vertex. Drag a vertex = move it. Vertices snap to the integer lattice.

Live Pick Relation

Add at least 3 vertices.
Interior I
Boundary B
Area A

Per-edge gcd boundary count

Complexity

StepTimeNotes
Shoelace 2AO(n)exact integer
Boundary BO(n log C)gcd per edge
Interior IO(1)Pick rearranged
Grid scanO(W·H)brute force only

Operation Log