Skip to content

Docs

How to use the calculators, and every formula Shotmath uses.

Getting started

  1. Open the calculators on the home page — no account needed. Pick one from the tab bar: Depth of field, Format equivalence or Exposure.
  2. Enter the real focal length printed on the lens (not the “equivalent” one) and the f-number as a plain number: 2.8 for f/2.8.
  3. Results update as you type. A field outlined in red tells you what range it accepts.

Sensor formats

  1. Sizes used: full frame 36 × 24 mm, APS-C 23.5 × 15.6 mm, Canon APS-C 22.3 × 14.9 mm, Micro Four Thirds 17.3 × 13 mm, 1-inch 13.2 × 8.8 mm, medium format 44 × 33 mm.
  2. Crop factor = full-frame diagonal (43.27 mm) ÷ the sensor's diagonal. APS-C comes out at about 1.53×, Micro Four Thirds at 2.0×.
  3. Circle of confusion (c) = sensor diagonal ÷ 1,442 — the rule behind the usual 0.030 mm for full frame. It assumes a print viewed whole at a normal distance.

Depth-of-field formulas

  1. Hyperfocal distance H = f² ÷ (N × c) + f, with focal length f and c in mm and the f-number N.
  2. Near limit = s × (H − f) ÷ (H + s − 2f); far limit = s × (H − f) ÷ (H − s), or infinity when the subject distance s is at or beyond H.
  3. Depth of field = far limit − near limit. Distances are measured from the sensor; s must be more than twice the focal length.
  4. These are thin-lens formulas. Real lenses, macro distances and pixel-level viewing give less depth of field than shown.

Equivalence formulas

  1. Same framing on another format: focal length × (crop of your format ÷ crop of the other format). The f-number scales by the same ratio for the same depth of field.
  2. Angle of view across a side of the sensor = 2 × arctan(side ÷ (2 × focal length)), for a lens focused at infinity.
  3. The equivalent f-number is about depth of field and total light. For exposure, f/2.8 is f/2.8 on every format.

Exposure formulas

  1. Shutter speed accepts 1/125, 0.5, 2 or 2s. ISO 25 to 409,600, ND filters up to 20 stops (ND8 = 3, ND64 = 6, ND1000 = 10).
  2. New shutter time = old time × (new N² ÷ old N²) × (old ISO ÷ new ISO) × 2^(ND stops). Change in stops = log₂(new time ÷ old time).
  3. EV at ISO 100 = log₂(N² ÷ t) − log₂(ISO ÷ 100). Bright sun at f/16, 1/125 s, ISO 100 is about EV 15.
  4. The nearest setting is the closest standard 1/3-stop shutter speed from 1/8000 s to 30 s. Longer exposures need Bulb mode.

Account, workspace and gear list

  1. Choose Sign up, then enter your name, email and a password with at least 8 characters, one letter and one number.
  2. You land in your workspace at /app. The calculators there remember your last settings, and the gear list keeps your items — both in this browser (localStorage). Clearing site data removes them, so export the CSV as a backup.
  3. Only the item name is required in the gear list. Export CSV gives a file with item, type, serial number, purchase date and price that opens in any spreadsheet.
  4. Use Log out in the top bar when you are done on a shared device. To delete your account, email [email protected].

Account API

  1. POST /api/auth/signup with JSON { name, email, password } → 201 and a session cookie; 409 if the email is taken, 400 on invalid input.
  2. POST /api/auth/login with JSON { email, password } → 200 and a session cookie; 401 on a wrong password, 429 after too many tries.
  3. GET /api/auth/me → 200 with the signed-in user, or 401 when signed out. POST /api/auth/logout ends the session.
  4. Requests that change data must come from the same origin (cookie session, no API keys). The calculators and gear list have no API — they run in your browser.

Shotmath gives estimates from the numbers you enter and standard, published formulas. Real lenses, focus breathing and how closely you look at the picture change the result — test with your own camera before a shoot that matters.