Source: https://www.abhineetbiju.com/writing/understanding-elliptic-curves/reference/0002-point-addition-formulas.html

Formula reference

# Point addition

Curvey² = x³ + ax + b

Fieldcharacteristic ≠ 2, 3

Identity𝒪

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

ConditionResultReason

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.
