Bifurcation Diagram

Draw the bifurcation diagram of the logistic map x → r x (1 − x): for each growth rate r the tool iterates the map, drops the first iterations and plots the values the orbit keeps visiting, shaded by how often it visits them. Zoom into any range of r and x to see period doubling, the onset of chaos and the period-3 window, with r1 = 3, r2 = 1 + √6 and the window start marked. Switch to a cobweb plot to follow one orbit step by step, with its period and Lyapunov exponent, or plot the Lyapunov exponent against r to see where the map is chaotic. Download a PDF, a 300 DPI PNG, an SVG or the numbers as CSV. Nothing is uploaded.

100% private — everything runs in your browser. Everything runs in your browser; nothing is uploaded.

100% private — runs in your browser

Print at 100% (Actual size). Real size prints on one sheet when the drawing fits; the check bar in the footer lets you confirm the scale. The SVG holds the drawing at the printed size. The CSV holds the numbers behind the drawing.

Logistic map x → r x (1 − x)

Look

Page

Runs in your browser with our own code: nothing you type is uploaded or saved. Every dot, cobweb step and exponent is computed by iterating the logistic map, and r2, the period-3 window and the doubling points are solved numerically. You may use what you make here, including commercially, with no credit needed.

How to draw a bifurcation diagram

  1. Pick a preset, or choose the diagram, a cobweb plot or the Lyapunov exponent.
  2. Set the r range (and x range), the columns and the iterations dropped and kept.
  3. For a cobweb plot, set r, the start value x0 and the number of steps.
  4. Choose the shading, colours, background and Fitted to one page or Real size.
  5. Download the PDF and print at 100% (Actual size), or the PNG, SVG or CSV.

What you can use it for

  • Lessons on period doubling and chaos
  • Zoomed prints of the period-3 window
  • Cobweb plots for one value of r
  • Comparing stable and chaotic r with the Lyapunov exponent
  • Posters and line art of the diagram
  • Data for spreadsheets from the CSV

The 16 presets

PresetShowsSettingResult
Bifurcation diagram, r from 2.8 to 4Diagramr 2.8–4, 700 columns, x 0–1234 columns with more than 64 values
Whole range, r from 1 to 4Diagramr 1–4, 700 columns, x 0–195 columns with more than 64 values
Zoom: r from 3.4 to 4Diagramr 3.4–4, 450 columns, x 0–1298 columns with more than 64 values
Period doubling cascade: r from 3.54 to 3.575Diagramr 3.54–3.575, 1,000 columns, x 0.3–0.92157 columns with more than 64 values
Period-3 window: r from 3.82 to 3.86Diagramr 3.82–3.86, 800 columns, x 0–1370 columns with more than 64 values
Inside the window: a small copy (r 3.847 to 3.857)Diagramr 3.847–3.857, 450 columns, x 0.44–0.56315 columns with more than 64 values
One colour, no density shadingDiagramr 2.8–4, 700 columns, x 0–1234 columns with more than 64 values
Light on a dark backgroundDiagramr 3.4–4, 450 columns, x 0–1298 columns with more than 64 values
Cobweb: r = 2.8, settles on one pointCobwebr = 2.8, 40 stepsperiod 1, exponent −0.223
Cobweb: r = 3.2, period 2Cobwebr = 3.2, 60 stepsperiod 2, exponent −0.916
Cobweb: r = 3.5, period 4Cobwebr = 3.5, 80 stepsperiod 4, exponent −0.873
Cobweb: r = 3.83, period 3Cobwebr = 3.83, 120 stepsperiod 3, exponent −0.369
Cobweb: r = 4, chaosCobwebr = 4, 200 stepsno cycle, exponent 0.693
Lyapunov exponent, r from 2.5 to 4Lyapunovr 2.5–4, 1,000 columns254 of 1,000 r values chaotic
Lyapunov exponent, r from 3.4 to 4Lyapunovr 3.4–4, 1,000 columns651 of 1,000 r values chaotic
Real size: diagram 150 mm wideDiagramr 2.8–4, 700 columns, x 0–1234 columns with more than 64 values

Counts are worked out by the tool from the drawing it makes; start value x0 = 0.2.

Period and Lyapunov exponent at some values of r

rPeriod foundCycleLyapunov exponent
0.810−0.223
2.510.6−0.693
2.810.6429−0.223
3.220.513 / 0.7995−0.916
3.44920.4401 / 0.8499−0.001
3.540.3828 / 0.5009 / 0.8269 / 0.875−0.873
3.5588 values−0.1
3.5661616 values−0.074
3.7none up to 64–0.354
3.8330.1561 / 0.5047 / 0.9574−0.37
3.9none up to 64–0.498
4none up to 64–0.693

Period: the smallest p up to 64 with the orbit back within 0.000000001 after 20,000 iterations from x0 = 0.2. Exponent: averaged over 100,000 iterations after 1,000 dropped.

Doubling points and the Feigenbaum ratio

nCycle length 2^nr where 1/2 is on the cycleRatio of successive gaps
012–
123.23606797754.70894
243.49856169934.68077
383.55464086284.66296
4163.56666737994.6684
5323.56924353164.66895
6643.56979529374.66916
71283.56991346544.66919
82563.5699387742–

Solved by Newton’s method in r. The ratios approach δ = 4.6692…; n = 1 is 1 + √5.

What prints

DownloadWhat is in it
PDFThe diagram, cobweb or exponent plot fitted to one page or at real size, vector shapes and lines, with axes, the values used and a check bar
PNG 300 DPIThe same sheet as a picture
SVGThe plot at the printed size: one filled path per shade, lines and labels
CSVDiagram: per column the number of distinct kept values and their range; cobweb: the orbit; exponent: r and the exponent

For a cutter that needs DXF, use SVG to DXF.

Which tool to use

You wantUse
The logistic map: diagram, cobweb, exponentBifurcation Diagram (this page)
A chaotic system in three dimensionsLorenz Attractor
A chaotic swingDouble Pendulum
Mandelbrot and Julia setsFractal Generator

Other tools: the Fractal Generator renders Mandelbrot and Julia sets, Graph Paper prints grids for cobweb plots by hand and the Spirograph Generator draws rolling-circle curves.

More free tools

Maths art, patterns and printables?

Drawing and print tools that run privately in your browser, with no sign-up and no watermark.

See all free tools →

Frequently asked questions

What is a bifurcation diagram?

A picture of how a system’s long-run behaviour changes with a parameter. Here the parameter is the growth rate r of the logistic map; for each r the tool drops the first iterations and plots the values the orbit keeps visiting, so one line means a fixed point, two lines a cycle of period 2, and a smeared band chaos.

What is the logistic map?

The rule x → r x (1 − x) for x between 0 and 1, a simple model of a population with a limit. It was popularised in a 1976 paper by the biologist Robert May, Simple mathematical models with very complicated dynamics (Nature 261), as the Wikipedia article on the logistic map notes (read 13 November 2026).

What happens as r grows?

Below r = 1 the orbit dies out to 0. From 1 to 3 it settles on one value, 1 − 1/r. At r = 3 that point splits into a cycle of 2, at r = 1 + √6 = 3.449490 into a cycle of 4, and the doublings come faster and faster until chaos sets in at about 3.56995 (Wikipedia). Inside the chaos there are windows of order; the widest, with period 3, opens at r = 1 + √8 = 3.828427. The tool computes r1, r2 and the window start itself, and they match those values.

How are r2 and the period-3 window computed?

r2 is where the cycle of 2 stops attracting: the tool finds the cycle’s two points and searches for the r where the product of the slopes there is −1. The window start is where the third iterate of the map first touches the line y = x; the tool solves both conditions together with Newton’s method. Our tests check both against 1 + √6 and 1 + √8.

What is the Feigenbaum constant?

The ratio of the lengths of successive period-doubling steps approaches δ = 4.6692…, the same for a whole family of maps; Mitchell Feigenbaum found it in 1975 and published it in 1978 (Wikipedia, Feigenbaum constants). The table on this page computes the doubling points where 1/2 is on the cycle and their ratios; they approach 4.6692 (4.66919 at the last step).

What is a cobweb plot?

A way to follow one orbit by hand: draw the curve y = r x (1 − x) and the line y = x, go up from x0 to the curve, across to the line, up or down to the curve again, and so on. A spiral that closes in means the orbit settles; a square that repeats means a cycle; a tangle means chaos. The tool also reports the period it finds (up to 64) and the Lyapunov exponent.

What is the Lyapunov exponent?

The average of ln|r (1 − 2x)| along the orbit: how fast nearby starts separate. Negative means the orbit settles, positive means chaos. For the cycle of 2 at r = 3.2 it is ln(0.16) / 2 = -0.916, and at r = 4 it is ln 2 = 0.693 (Wikipedia); the tool computes -0.916 and 0.693.

What does the shading mean?

Each column of the diagram counts how many kept values fall in each row. Rows visited by 5% or more of the kept values print darkest, then 1%, then 0.2%, then any visit at all. One colour turns the shading off.

Will another browser give the same picture?

Yes for the diagram and cobweb: the map uses only multiplication and subtraction, which every JavaScript engine rounds the same way, so even chaotic orbits come out bit for bit the same in our tests. The Lyapunov exponent also uses a logarithm, so the last decimal places can differ very slightly.

How big can it go?

100 to 1,000 columns, up to 5,000 iterations dropped and 2,000 kept, 100 to 800 rows, and at most 4,000,000 iterations per drawing; cobweb plots up to 500 steps. Every preset draws in under 2 seconds in our tests.

Can it print at real size?

Yes, when the drawing fits on one sheet: choose Real size and set the printed width. Every printed point is within 0.2 mm of its true place in our tests, on US Letter and A4, as long as you print at 100% (Actual size); the check bar in the footer lets you confirm the scale. Bigger drawings print fitted to the page.

Is it free?

Yes. There is no sign-up, no watermark and no limit.

Is anything uploaded?

No. Every value is worked out by JavaScript in your browser. Nothing you type is sent anywhere or saved when you close the page.