Home / Science / Physics / Nuclear and particle physics / Feynman diagram drawerTool #949

Feynman diagram maker: draw particle physics diagrams, download SVG or PNG, export TikZ-Feynman code

Type the vertices and lines of a Feynman diagram (fermions, photons, gluons, W, Z, Higgs, ghosts, bent loops, momentum arrows) and get a clean drawing to download as SVG or PNG, plus TikZ-Feynman code for LaTeX. Eight textbook examples to start from.

Keep it one tap away for everyday use.

Bookmark Feynman diagram drawer?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Describe
  2. Preview
  3. SVG or PNG
  4. TikZ code
Nothing is uploadedWorks offline once open

Diagram

Vertex: name x y (y upwards; add dot, blob, cross or none to choose its mark). Line: from to type label, types fermion, antifermion, photon, gluon, W, Z, higgs (dashed), scalar, ghost (dotted), plain, double. Extras: bend=40 curves the line to the left (negative: right), right puts the label on the other side, p=k adds a momentum arrow. Labels: gamma, mu, nu and other Greek names; e-, W^+, pi0; ~nu_e for ν̄ₑ. Lines starting with # are notes.

Drawing

TikZ-Feynman code

For LaTeX with the tikz-feynman package. Positions are given explicitly, so it compiles with pdfLaTeX (no LuaLaTeX needed). The SVG opens in Inkscape, Illustrator and most slide software.

Download

What it does

A Feynman diagram is a picture of a particle interaction: straight lines with arrows for electrons, quarks and other fermions, wavy lines for photons and W or Z bosons, curly lines for gluons and dashed lines for the Higgs and other scalars. This page draws one from a short text description, so you can change it quickly and get the same result every time.

You get the drawing on the page, an SVG (vector, for posters, slides and papers), a PNG at four times screen resolution, and TikZ-Feynman code to paste into a LaTeX document.

How to use it

  1. Start from an example or clear the box.
  2. Place each vertex on its own line: name x y, with x to the right and y upwards (any units; 1 unit is 60 pixels by default). Add dot, blob, cross or none to choose the mark; by default, vertices where three or more lines meet get a dot.
  3. Join vertices with lines: from to type label. The types are fermion, antifermion (arrow reversed), photon, gluon, W (wavy with an arrow), Z (wavy), higgs or scalar (dashed), ghost (dotted), plain and double.
  4. Extras on a line: bend=40 curves it to the left by 40° (negative to the right; two bent lines between the same vertices make a loop), right moves the label to the other side, and p=k adds a momentum arrow labelled k.
  5. Labels use a simple notation: Greek names (gamma, mu, nu, tau, pi, …), a trailing sign or zero as a superscript (e-, mu+, pi0), ^ and _ for super- and subscripts (W^+, nu_mu), and ~ for a bar (~nu_e is the electron antineutrino).
  6. Choose the size, line width and label size, then download.

Worked example

The default example is electron-positron annihilation into a muon pair. Six vertices: the incoming e⁻ at (0, 2) and e⁺ at (0, 0), the two interaction points v1 at (1.5, 1) and v2 at (3.5, 1), and the outgoing μ⁻ and μ⁺ at (5, 2) and (5, 0). The photon line v1 v2 photon gamma p=q is drawn as a wave with the label γ and a momentum arrow q. The positron is written v1 i2 fermion e+, an arrow pointing back in time, as is usual for antiparticles. The page draws it with dots at v1 and v2, and the TikZ code starts \vertex (i1) at (0, 2); and contains (v1) -- [photon, edge label=\(\gamma\), momentum'=\(q\)] (v2).

Tips

  • Keep vertices on a simple grid (whole or half units) and the drawing will look tidy.
  • For a loop, join two vertices with two lines bent opposite ways, or one straight and one bent (see the electron self-energy example).
  • The TikZ code needs \usepackage{tikz-feynman} in your preamble. Because every vertex has a position, it compiles with ordinary pdfLaTeX.

FAQ

Does it check that the diagram is physically allowed? No. It draws what you describe; conservation of charge, lepton number and so on is up to you.

Can I change the drawing afterwards? Yes: the SVG is plain vector paths and text that any vector editor can open.

Is anything uploaded? No. The drawing, the files and the code are all made in your browser.

Where the numbers come from

  • Line styles and LaTeX output follow the tikz-feynman package conventions: Ellis, J. P. (2017), TikZ-Feynman: Feynman diagrams with TikZ, Computer Physics Communications 210, 103 to 123 (style names only; no code copied).
  • Example diagrams are standard textbook processes (QED scattering, Compton scattering, beta and muon decay, gluon fusion), drawn with our own coordinates.
  • Geometry checked against the circle through the end points with the TikZ 'bend left' exit angle, in tests written for this page.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Decay chain simulator #945 Follow a radioactive parent and up to seven daughters through time with the Bateman equations: activity of every member at any time, when each daughter peaks, whether the chain reaches secular or transient equilibrium and how long that takes. Branching, any starting activities, and a chart and CSV of the ingrowth. Relativistic kinematics calculator #947 Four special-relativity calculators in one page, in MeV or GeV with c = 1: the invariant mass of any set of particles, the momenta and lab energy ranges in a two-body decay, a Lorentz boost of a four-momentum in any direction, and the threshold energy of a reaction on a fixed target or in a collider. Type particle names instead of masses. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Gamma shielding calculator #946 How much a lead, tungsten, steel, aluminium, concrete or water shield cuts a gamma beam from 0.1 to 2 MeV: linear attenuation coefficient, half- and tenth-value layers, narrow-beam transmission, optional buildup, and the thickness for a wanted transmission, with every material compared. The built-in μ/ρ is worked out from formulas, not a table, so it is only an estimate: type the NIST XCOM value for real work. Stopping power and range calculator #948 Energy loss (stopping power, LET) and CSDA range of protons, deuterons, alphas, carbon ions, your own ion, muons and pions in water, air, PMMA, aluminium, silicon, copper, lead or your own material, from the Bethe-Bloch formula. Plots stopping power against energy and the Bragg curve, and gives the energy left after any thickness. Counting statistics helper #950 For Geiger, scintillation and gamma counting: subtract the background with the right uncertainty, decide whether anything was detected (Currie's decision threshold L_C and detection limit L_D), get the activity and minimum detectable activity, exact Poisson limits, dead-time corrections for both detector models, and the best split of counting time.