How this calculation works
Add, double and multiply points on a nonsingular short Weierstrass elliptic curve over a small prime field. The calculator enumerates the curve to report its group order and finds the entered point’s order, including the point at infinity. Coordinates and slopes are computed modulo the prime. The small educational field limits make this unsuitable for production cryptographic parameters.
y²=x³+ax+b mod p; P+Q follows the elliptic-curve secant/tangent group law with infinity as identity.A worked example
For y²=x³+x+1 over GF(5), there are eight affine points and infinity, so the group order is nine. P=(0,1) has order nine, 2P=(4,2), and P+(0,4)=infinity. The curve must have nonzero discriminant modulo the prime.
Good to know
Short Weierstrass curves over primes 5–499; nonsingular only. Enumerates all affine points plus infinity. Scalars within ±1,000,000. Educational exact finite-field arithmetic; no wallets, key generation or cryptographic-strength claim.
The curve and its identity
Points satisfy y squared equals x cubed plus ax plus b modulo p, together with a point at infinity serving as the additive identity. The tool requires p greater than three and checks nonsingularity through the discriminant.
A singular cubic does not have the elliptic-curve group law intended here. All finite input points must satisfy the curve equation. A familiar-looking coordinate pair from another prime or curve cannot be reused without checking membership.
Computes an elliptic-curve group law with a point at infinity, not multiplication of modular integers. The Boolean function algebraic normal form and Walsh spectrum calculator offers a complementary calculation under its own stated assumptions.
Modular slopes are not real slopes
For distinct noninverse points, the addition formula uses a coordinate difference divided by another difference, with division interpreted as multiplication by a modular inverse. Doubling uses the tangent formula when the denominator is nonzero.
The drawing of a real cubic is only an analogy: arithmetic happens in a finite field. A slope residue does not describe an ordinary geometric angle, and coordinates wrap modulo p after every operation.
Worked example and mathematical rule
For y²=x³+x+1 over GF(5), there are eight affine points and infinity, so the group order is nine. P=(0,1) has order nine, 2P=(4,2), and P+(0,4)=infinity. The curve must have nonzero discriminant modulo the prime.
y²=x³+ax+b mod p; P+Q follows the elliptic-curve secant/tangent group law with infinity as identity.
Vertical pairs and the point at infinity
A point and its inverse have the same x coordinate and opposite y coordinates modulo p. Their sum is infinity. A point with y equal to zero doubles to infinity because it equals its own inverse.
Infinity plus a point returns the point. These cases must be handled separately from a generic slope division, whose denominator would vanish. The output uses an explicit infinity representation rather than inventing finite coordinates for the identity.
Scalar multiplication and order
Multiplying a point by an integer means repeated group addition, implemented efficiently through doubling and addition. Negative scalars first use the inverse point.
The point order is the smallest positive scalar giving infinity, whereas the curve group order counts all finite points plus infinity. The point order divides the group order, but need not equal it. A scalar can be reduced modulo the point order without changing the resulting point.
Enumeration provides a small-field check
For every x residue, the tool finds y residues satisfying the curve equation and includes the identity. That full enumeration is practical only for the supported small primes.
It supplies a direct count and makes point-order checks reproducible. Relabeling an isomorphic curve’s points requires a valid coordinate transformation; merely changing a or b changes the problem. Different points on the same curve can have very different orders.
Cryptographic limits
Correct group arithmetic alone does not establish that a curve is safe for cryptography. Real systems need approved parameters, subgroup handling, secure randomness, constant-time implementations and protocol-specific validation.
This page uses tiny fields specifically to make examples inspectable. Do not enter secret keys or mistake a successful scalar multiplication for a security assessment. The calculator is most useful for checking classroom examples, modular arithmetic identities and the distinction between curve order and point order.
A few questions, answered
Is infinity a very large coordinate?
No. It is the group identity, represented separately from finite coordinate pairs.
Why are primes two and three excluded?
This implementation uses short Weierstrass formulas for characteristic greater than three.
Is point order always the curve order?
No. It divides the group order and may be smaller.
Can this choose secure cryptographic parameters?
No. The small-field calculator is educational and does not assess cryptographic security.