ForHosting KIT · Science

Photoelectric effect calculator

A 1000 THz photon carries 6.62607015 × 10⁻¹⁹ J, so a metal with a work function of 3 × 10⁻¹⁹ J releases electrons that keep the surplus as kinetic energy. Enter both values to get that maximum energy in joules and electronvolts. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Frequency
1,000,000,000,000,000
Work function
0
You get
Photon energy
0 J
Photon energy ev
4.1356676969
Work function ev
1.8724527223
Threshold frequency
452,757,053,892,645.56

The photoelectric effect is the emission of electrons from a metal surface when light of sufficient frequency strikes it. Einstein explained the observation with a photon model: each photon carries energy equal to Planck's constant times its frequency, and an electron that leaves the metal keeps whatever remains after paying the work function. This photoelectric effect calculator accepts the incident photon frequency in hertz and the material work function in joules, then returns the maximum kinetic energy of ejected electrons from the Einstein equation K_max equals h f minus phi, using the exact SI 2019 Planck constant. When the photon energy sits below the work function, no electrons are ejected and the maximum kinetic energy is reported as zero rather than a negative leftover.

What Einstein's equation says and what you get back

The photoelectric effect is the emission of electrons from a metal or other condensed surface when electromagnetic radiation of high enough frequency arrives. Classical wave theory predicted that a dim source would eventually eject electrons if intensity were integrated long enough, and that kinetic energy should grow with brightness. Experiments showed the opposite: below a material-dependent threshold frequency nothing is ejected no matter how intense the beam, and above that threshold the maximum kinetic energy of the photoelectrons grows with frequency, not with intensity.

Einstein's 1905 photon picture accounts for those facts with one linear energy balance. A photon of frequency f carries energy h f, where h is Planck's constant. An electron bound at the surface must spend at least the work function phi to escape.

Any surplus becomes kinetic energy, so the fastest electrons leave with K_max equal to h f minus phi. Intensity only changes how many photons arrive per second, hence how many electrons leave, not the energy of each photon. The constants baked in are the exact SI 2019 values: h equals 6.62607015 times ten to the minus thirty-four joule-seconds, and the elementary charge used for the electronvolt rewrite is 1.602176634 times ten to the minus nineteen coulombs.

Where a photoelectric-effect calculator earns its keep

Students meet the photoelectric effect when a textbook moves from classical waves to photons, when a contest problem asks for K_max from a given frequency and work function, or when they must decide whether a colour of light can eject electrons from sodium, potassium, or cesium. Teachers can pre-generate answer keys for modest SI inputs without trusting opaque calculator apps that silently switch from joules to electronvolts or drop scientific notation.

Developers seed deterministic test vectors for quantum or solid-state modules, normalize user-entered frequency before a photoelectric demo, or satisfy programming-challenge statements that demand maximum kinetic energy rather than a hand-waved electron constant. Product and education tools use the formula when a learner types a frequency in hertz and a work function in joules and the interface must show K_max next to the threshold frequency and an ejected flag.

Pair it with a photon-energy converter or a wavelength-from-frequency tool when you need related optical steps, and keep work function in joules so the published kinetic-energy fields stay in joules without a hidden unit conversion.

Homework and photoelectric-effect table checks

Compute K_max from textbook frequency and work-function values and verify whether photoelectrons are ejected before stopping-potential or Einstein-plot problems.

Education tools and photoelectric demos

Normalize user-entered photon frequency and metal work function into maximum kinetic energy for interactive lessons, lab notebooks, and quantum-mechanics demonstrations.

What does the photoelectric effect calculator cost?

It is free in your browser on this page.

How is the maximum kinetic energy defined here?

Frequency is in hertz and work function is in joules, so K_max is in joules. Electronvolt companions are also returned using the elementary charge 1.602176634×10⁻¹⁹ C.

What happens if the photon frequency is zero or negative?

Photon frequency must be a positive number in hertz; the photoelectric equation K_max = h·f − φ is undefined for a non-positive frequency.

What units should I use?

Enter incident photon frequency in hertz and work function in joules. Maximum kinetic energy is returned in joules (unit J), with electronvolt companions for photon energy, work function, and K_max. Convert eV to joules by multiplying by 1.602176634×10⁻¹⁹.

What happens if the light is below the threshold frequency?

No electrons leave the metal, however bright the light is. The maximum kinetic energy is reported as zero rather than a negative leftover, and you also get the threshold frequency, which is the work function divided by Planck's constant.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/phys/photoelectric-effect

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/phys/photoelectric-effect \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"frequency":1000000000000000,"work_function":3e-19}'
{
  "frequency": 1000000000000000,
  "work_function": 3e-19
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "phys.photoelectric_effect",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_abs_frequency1e+30
max_abs_work_function0.000001
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

The same pure arithmetic runs free in the browser and at $0.002 per successful API call, with no network, sampling, or date-dependent shortcuts. A photon frequency that is missing, zero, negative, or non-finite fails with invalid_input and is not billed.

What Einstein's photoelectric equation means and what the response contains

This calculator returns that maximum kinetic energy in joules, the photon energy h f, the work function you supplied, the threshold frequency phi over h, electronvolt companions of those energies, and a boolean ejected that is true when h f is at least phi. Below threshold the leftover would be negative, which cannot be a kinetic energy of an ejected electron, so max_kinetic_energy is reported as zero and ejected is false. There is no table of named metals and no wavelength-to-frequency conversion inside this endpoint: you supply frequency in hertz and work function in joules, and the engine either evaluates the Einstein remainder or rejects a non-positive frequency with invalid_input.

Input contract, units, and how K_max stays reproducible

Convert a textbook value in electronvolts by multiplying by the elementary charge 1.602176634 times ten to the minus nineteen coulombs, so 2.3 eV becomes about 3.685 times ten to the minus nineteen joules. Convert terahertz to hertz by multiplying by ten to the twelve, so 500 THz becomes 5 times 10 to the 14 hertz. Optional leading plus signs and scientific notation on numeric strings are allowed when they parse as finite decimals; embedded spaces, hex prefixes, and non-numeric tokens are rejected so a bad cell does not become a wrong kinetic energy. Magnitudes above the documented ceilings for frequency and work function are rejected so overflow cannot silently become Infinity. Computation multiplies the exact SI 2019 Planck constant by frequency, subtracts the work function, and clamps a negative leftover to zero so the published maximum kinetic energy is never a non-physical negative joule value. Failed validation is not billed. POST a JSON body with two required finite numbers. Frequency is the incident photon frequency f in hertz; aliases f, nu, and frequency_hz are accepted so spreadsheets, query strings, and typed forms can reuse the same contract. It must be strictly positive: zero, negative, negative zero, NaN, and Infinity fail with invalid_input naming frequency, because the photoelectric equation K_max equals h f minus phi is undefined for a non-positive frequency. Work function is the metal work function phi in joules; aliases phi, work_function_j, and phi_j are accepted. It must be a finite non-negative number. On success the body echoes frequency and work_function, reports photon_energy and photon_energy_ev, work_function_ev, threshold_frequency, max_kinetic_energy and max_kinetic_energy_ev, ejected, the exact constants h and elementary_charge, a unit string J, the method tag photoelectric_effect, and a short formula reminder.

Where a photoelectric-effect calculator earns its keep

Laboratory courses that measure stopping potential versus frequency still need a closed-form Einstein remainder to compare against a fitted slope h and intercept phi; calling a tiny parse API avoids pulling a computer-algebra system for two scalars. On this page the work runs entirely in your browser; through the API each successful lookup costs $0.002, failed validation is not charged, and nothing is stored after the response returns. That split of free interactive exploration and a priced, identical API matches the rest of the KIT tier-A catalog and lets you move from a classroom demo to an automated pipeline without changing the mathematical result.

Deterministic test fixtures

Generate reproducible maximum kinetic energies, threshold frequencies, and ejected flags for unit tests, property checks, and CI assertions on quantum or solid-state modules.

What if the photon energy is below the work function?

The request still succeeds. ejected is false and max_kinetic_energy is 0, because no photoelectrons leave the surface. The response still reports photon_energy and threshold_frequency so you can see how far the light sits below cutoff.

Read the full KIT documentation →