Formula reference
Point addition
The formulas, their special cases, and the reason each coordinate has its shape.
Distinct points
λ = (y₂ − y₁) / (x₂ − x₁)
x₃ = λ² − x₁ − x₂
y₃ = λ(x₁ − x₃) − y₁
The slope identifies the line. Substitution into the cubic and Vieta's root-sum formula give x₃. Reflection of the third intersection gives y₃.
Point doubling
λ = (3x₁² + a) / (2y₁)
x₃ = λ² − 2x₁
y₃ = λ(x₁ − x₃) − y₁
The tangent makes x₁ a double root of the line-curve intersection equation. That is why x₁+x₁ replaces x₁+x₂.
Special cases
| Condition | Result | Reason |
|---|---|---|
| P + 𝒪 | P | 𝒪 is the identity. |
| x₁=x₂, y₂=−y₁ | 𝒪 | The connecting line is vertical. |
| P=P, y₁=0 | 𝒪 | The tangent is vertical. |
Over a finite field, replace every division by multiplication with a modular inverse. These are short Weierstrass formulas. Ed25519 uses a twisted Edwards form with different coordinate formulas.