Tatreez · Algorithm ·

The back of the cloth

In what order to stitch a motif, so its back holds the least thread and the fewest cuts.

Turning the cloth over

An embroiderer finishes a star of red crosses and turns the cloth over. The front is done: eighty-four crosses, every top stitch leaning the same way. The back can look like almost anything. On one cloth it is rows of short straight threads. On another it is long diagonals running across bare cloth from one arm of the star to the next.

Many who teach tatreez today ask for a clean back: short, orderly stitches and no knots. One guide calls it a high achievement, though not a requirement.1 A writer who joined a tatreez workshop in 2025 saw the same thing: the back is kept neat, with only horizontal or vertical lines on the wrong side.2

The front looks the same whatever order the crosses go in. So does the order matter? It does, because each order leaves a different back, and every inch of thread on the back comes off the same skein as the front. What should the embroiderer stitch next, and what after that? This page follows four algorithms for answering it.

front

  1. AA square on the chart is one cross: two halves of thread through the four holes at its corners.
  2. BThe under half goes in first and the over half lies on top. Every over half leans the same way, so the front looks even.

back, seen through the cloth

  1. CBetween two halves the thread runs on the back, from the hole where the needle went down to the hole where it comes up. It can’t come up in the hole it just went down, so every move is at least one square long.
  2. DOut along the row with the under halves and back with the over halves: five moves, each one square long and straight. No back of these three crosses holds less thread.

plate 1 · three crosses, out and backgo and return · 5 squares of thread on the back

a half on the front, the way the needle goesa move on the back, toward the next halfthe order of the halvesa hole

Plate 1

Every order below is a choice of which half comes next, and from which end.

Figure 1. Three crosses, stitched out along the row and back again.

The cloth is a grid of small squares with a hole at every corner, and each cross sits on one square. It is two threads crossed, and we call each one a half. The first half goes from one corner of the square to the opposite one, and the second lies over it between the other two corners.

After every half the needle goes down to the back and comes up again to start the next one, so the thread runs on the back from the hole where it went down to the hole where it comes up. We call that a run, and it happens between the two halves of one cross just as it does between two crosses. The needle can't come up in the hole it just went down, or the stitch would pull straight out, so the nearest it can come up is the next hole.

We measure thread on the back by the side of a square: a run to the next hole is one square. A motif of a hundred halves stitched with one thread has ninety-nine runs, so at least ninety-nine squares of thread on its back. The three crosses in the plate reach that limit: six halves, five runs, five squares of thread.

Four ways to stitch, from the craft and from research

Cross-stitchers learn two ways to work. One finishes each cross before moving on, and is sometimes called the English method. The other lays a row of first halves and comes back along the row with the second; stitchers call it the Danish method.3

The other two are known mostly from research papers. In 2005, three computer scientists in Canada asked which order of stitches uses the least thread. They proved the question hard in general: no quick method is known that answers it for every pattern. But when the pattern is one connected piece, the best order can be found quickly.4 Three years later another team reached the same split for a broader kind of embroidery, and added a quick method for scattered designs that never needs more than twice the least thread.5 Their methods are built for proofs. The two below are simpler, and anyone can follow them with a needle in hand.

All four follow the same rule for cutting. A tatreez guide advises carrying the thread on the back only to a point a few stitches away, and starting a new thread otherwise.1 Here, the embroiderer cuts the thread and starts again whenever a run would be longer than three squares. A cut adds work, so we count each one as three squares of thread, and call the thread plus those squares the weight of the back. The lighter the back, the better.

Go and return works along a run of squares side by side in a row: the first halves going out, the second halves coming back. On a plain row every run of thread on the back is one square long and straight: the straight lines the workshop described.

Algorithm 2Go and return

2 of 4
1procedure GO-AND-RETURN(cells, side)2runs ← FIND-RUNS(cells)3run ← TAKE-FIRST(runs, side)4repeat5way ← CHOOSE-SIDE(run, side)6LAY-UNDERS-ALONG(run, way)7LAY-OVERS-ALONG(run, GET-OTHER-SIDE(way))8run ← TAKE-NEAREST-RUN(runs)9until run = NONE
Along each run of squares in a row: the under halves going out, the over halves coming back.

One motif, stitch by stitch

motif
way
side

Half 168. Before it, the thread ran on the back from the end of half 167 to its start: 1 square.

front166167168
back, seen through the cloth166167168

thread on the back 166 squaresrestarts 4over the best possible 10 squares

halves laid168 / 168

Najma, the star, Ramallah

the motif, seen through the clotha half on the front, the way the needle goesthread on the back, toward the next halfthe order of the latest halvesthe thread cut, and started again

Try it

Pick a way and follow the needle. On the front, each half points the way it was stitched, and the latest carry their number; on the back, the thread runs on to the next half. Orange dots mark where the thread was cut and started again. Pick another motif: the stripes of Qamar suit the rows of Go and return, the zigzag of the saw teeth does not.

Figure 2. One motif, four ways to stitch it, from the front and from the back.

Follow the star. Najma is a motif from Ramallah. It has 84 crosses: red arms, and a pink tip on either side. The two pink tips sit far enough apart that the pink thread has to be cut once, so the star takes three threads: one red and two pink. Its crosses have 168 halves, and every half after the first on each thread needs a run of at least one square, so no back of this star can hold less than 165 squares of thread.

Finish each cross leaves 187 squares of thread on the back and cuts the thread 3 times. Go and return, which makes a perfect back on a plain row, does worse here: 191 squares and 7 cuts. The star is built of short diagonal steps, so every run is short, and between runs the thread has to jump. Nearest next leaves 166 squares and cuts 4 times. Improve the order leaves 167 squares and cuts 3 times: 8 squares from the best possible back.

The model

Every number on this page comes from one model, and Algorithm 5 is how it weighs a back.

The cloth is a grid of squares with a hole at every corner. A cross is two halves: the first from the bottom corner on one side to the top corner on the other, the second across it, so every top stitch leans the same way. A half can be stitched from either end. Each colour is its own thread, stitched one after another.

Algorithm 5Weighing a back

1function WEIGH-BACK(order)2thread ← 03restarts ← 04for i from 2 to COUNT(order) do5move ← MEASURE(GET-DOWN-HOLE(order[i − 1]), GET-UP-HOLE(order[i]))6if move > CUT-LIMIT then7restarts ← restarts + 18else9thread ← thread + move10weight ← thread + restarts × CUT-LIMIT11return weight
One colour’s thread. A restart weighs as much as the longest move we keep.

A run of thread on the back is measured from where the needle went down to where it comes up, in squares, and a diagonal run is longer than a straight one. A run longer than three squares cuts the thread: the thread is tied off, a new one is started, and that run adds no thread. A cut is still work, and a loose end to weave in, so each cut weighs as much as three squares of thread. Without that, the cheapest back would cut after every half.

The best possible back depends only on the motif. Every run on the back is at least one square, so a motif needs at least one square of thread for each half after the first on every thread. Some cuts can't be avoided: when two groups of one colour are more than three squares apart, no order joins them. The best possible back uses one square for every run, and cuts only where the motif forces it.

How much thread goes to the back

measure

Finish each crossGo and returnNearest nextImprove the orderthe best possible back

NajmaFinish each cross, Najma: 0.33Go and return, Najma: 0.52Nearest next, Najma: 0.11Improve the order, Najma: 0.09QamarFinish each cross, Qamar: 0.45Go and return, Qamar: 0.35Nearest next, Qamar: 0.10Improve the order, Qamar: 0.09HijabatFinish each cross, Hijabat: 0.42Go and return, Hijabat: 0.42Nearest next, Hijabat: 0.08Improve the order, Hijabat: 0.08SarwaFinish each cross, Sarwa: 0.44Go and return, Sarwa: 0.67Nearest next, Sarwa: 0.10Improve the order, Sarwa: 0.10Saw teethFinish each cross, Saw teeth: 0.47Go and return, Saw teeth: 0.67Nearest next, Saw teeth: 0.24Improve the order, Saw teeth: 0.2100.10.20.30.40.50.60.7squares of thread over the best possible back, per cross

Restarts count as three squares of thread each in the first measure.

Thread

Each mark is one way to stitch the whole motif. Switch to Restarts to see where the thread is cut; switch to Thread to see the thread alone, which an order can lower by cutting more often.

Figure 3. Five motifs, four ways to stitch each, the needle starting on the left.

Three observations come out of this chart.

The first is that watching the needle is worth more than any rule about rows. On every motif, Nearest next and Improve the order leave a back closer to the best than either of the ways the craft teaches. Over the five motifs, the two taught ways leave between 0.33 and 0.67 squares of thread per cross over the best possible back; the two others leave between 0.08 and 0.24. On Qamar, a moon of 800 crosses, Finish each cross leaves 1,910 squares of thread on the back and Nearest next 1,597: about 313 squares less.

The second is that the old rules each have their motif. Go and return beats Finish each cross on Qamar, whose long stripes are long runs, and falls behind it on the saw teeth, a zigzag of short runs where every return means a jump. Neither taught way is better on every motif.

The third is that the search adds little. On no motif does Improve the order leave a back more than 9 squares lighter than Nearest next. A simple rule, looking only at the next stitch, comes close to what the search finds. Some cuts no rule can avoid: Sarwa, a cypress in four colours, needs 14 cuts whatever the order, because each of its colours sits in small groups more than three squares apart.

Stitch a motif of your own

36 crosses
Finish each cross

thread on the back 83 squaresrestarts 0over the best possible 12 squares

Go and return

thread on the back 97 squaresrestarts 2over the best possible 32 squares

Nearest next

thread on the back 73 squaresrestarts 4over the best possible 14 squares

Improve the order

thread on the back 74 squaresrestarts 0over the best possible 3 squares

Your turn

Try a plain row first: Go and return reaches the best possible back. Then draw a diagonal, or two shapes far apart, and watch the cuts appear.

Figure 4. Draw on the cloth; each way stitches it, and its back appears.

What it leaves out

The model gives every colour one endless thread, while a real thread runs out and a new one starts whatever the order. Length and cuts are all it measures; a real back also has tension, twist and knots. The only stitch it knows is the cross, and tatreez has others. It also stitches one colour after another, where an embroiderer may keep several needles going at once.

Two results should hold outside the model. Every run of thread on the back costs at least one square, so the best a stitcher can do is make every run that short, and only rows and close neighbours allow it. And no single rule about rows suits every motif: the stripes of a moon and the teeth of a saw ask for different orders.

So in what order should that star have been stitched? Finishing each cross, or working in rows, leaves 22 to 26 squares of thread more than the star needs, and more cuts. Following the needle, taking the nearest half each time, leaves one square of thread more, with three cuts the star doesn't force: close to the clean back that teachers of tatreez ask for.

References

  1. Tatreez Traditions, “Tatreez clean back guide.” ↩ ↩

  2. C. Roger, “Tatreez: Palestinian embroidery with Alex Verma,” SAD Mag, 20 December 2025. ↩

  3. L. Mills, “The Danish method in cross stitch,” The Art of Stitch, 30 April 2026. ↩

  4. T. Biedl, J. D. Horton and A. López-Ortiz, “Cross-stitching using little thread,” Proceedings of the 17th Canadian Conference on Computational Geometry, 2005. ↩

  5. E. M. Arkin, G. W. Hart, J. Kim, I. Kostitsyna, J. S. B. Mitchell, G. R. Sabhnani and S. S. Skiena, “The embroidery problem,” Proceedings of the 20th Canadian Conference on Computational Geometry, 135–138, 2008. ↩