Evidence type: documentation. Results are limited to the documented conditions.

This article explores the coffee-ring effect and the practical use of free image-analysis software ImageJ through a study by Yen and colleagues in Scientific Reports. Experimental results come from the published paper; suggested applications are illustrative.

01. The puzzle a coffee drop leaves behind

Spill a drop of coffee on a table, forget about it, and come back after it has dried. What is left is usually not an even brown disc but a paler circle with a distinctly darker rim. Almost everyone has seen this "coffee ring", yet the question behind it is less obvious than it looks: the particles in the drop started out evenly spread, so why do they end up at the edge?

This is not only a kitchen curiosity. Ink droplets from an inkjet printer, spots of DNA or protein on a biochip, and drops of body fluid placed on a slide for testing all run into the same problem as they dry. When material piles up at the rim, the pattern is uneven and the signal is spread over a much larger area than intended.

A paper published in Scientific Reports in 2018 tried to run the process in reverse. Could the material in a drop be kept away from the rim and gathered into a single spot about 100 µm across at the centre? To measure the deposits that resulted, the researchers used the free image-analysis program ImageJ.

This article follows three questions: how a coffee ring forms, how the paper changed it, and what ImageJ did — and did not do — in that study.

02. Why do particles collect at the edge?

Evaporation is not uniform

A drop resting on a flat surface has the shape of a shallow spherical cap. Water leaves every part of the surface, but not at the same rate. Near the edge, vapour escapes more easily into the surrounding air and is less likely to be recaptured by nearby liquid, so the evaporative flux per unit area is highest close to the rim. The classic 1997 Nature paper by Deegan and colleagues used exactly this point to explain why ring stains form [3].

The edge is held in place

If the edge of the drop could move freely, the water lost there could be made up simply by the whole drop shrinking a little. In practice, the line where liquid, solid and air meet — the contact line — is often caught on tiny roughness or chemical patches on the surface. This is called contact-line pinning. With the edge fixed and evaporation fastest there, liquid has to keep flowing from the centre outwards to maintain the drop's shape. This outward, replenishing flow (often called capillary flow) carries suspended particles with it. Once particles reach the contact line they rarely leave, so they accumulate there and form a ring [3, 4].

Figure 1 | Schematic of coffee-ring formation. A: evaporative flux is highest near the edge. B: with the contact line pinned, an outward replenishing flow develops inside the drop; Marangoni recirculation may compete with it. C: particles accumulate at the contact line and leave a ring-shaped deposit.ZIRULAB; ZIRULAB original

Figure 1 | How a coffee ring forms (schematic). A: evaporative flux is highest near the edge of the drop. B: when the contact line is pinned, an outward replenishing flow develops inside the drop; the dashed loop marks Marangoni recirculation, which can compete with it. C: particles collect at the contact line and leave a ring-shaped deposit after drying. Arrow lengths show qualitative trends only. Based on Deegan et al. 1997 [3] and Hu & Larson 2006 [5]. Source: drawn by ZIRULAB.

More than one cause

"The edge evaporates faster" is too short an answer. At least the following factors can change the final pattern:

  • Marangoni flow. Evaporation creates temperature differences along the surface. Because surface tension depends on temperature, liquid is pulled along the surface and a recirculating flow forms inside the drop. Hu and Larson showed that this recirculation can, under some conditions, carry particles back to the centre and reverse the coffee ring, while noting that the effect is often weak in water [5]. The original paper also cites the suppression of thermal Marangoni recirculation in water as part of its motivation [1].
  • Particle shape. Yunker and colleagues found that replacing spheres with elongated ellipsoids causes the particles to attract one another at the surface and form loose networks, which markedly weakens the coffee ring [6].
  • The final rush. Marín and colleagues studied how flow near the edge speeds up sharply in the last stage of drying, and how this affects the way particles are packed in the ring [7].
  • Whether the contact line stays pinned. If the contact line unpins and retreats inwards during drying, particles need not stay at the original edge.

The coffee-ring effect is therefore best understood as the outcome of several competing flows and interfacial processes. Under everyday conditions, the outward replenishing flow usually wins.

03. How did the researchers change the coffee ring?

The paper

The paper discussed here is: Tony M. Yen, Xin Fu, Tao Wei, Roshan U. Nayak, Yuesong Shi and Yu-Hwa Lo, "Reversing Coffee-Ring Effect by Laser-Induced Differential Evaporation", Scientific Reports 8, article 3157, published online on 16 February 2018, DOI 10.1038/s41598-018-20581-0 [1]. The authors were mainly at the University of California San Diego, with one at Howard University. The paper is open access under a CC BY 4.0 licence.

We checked these details against the Crossref metadata and the publisher's article page on 28 November 2026 and found no correction, retraction or expression of concern [1, 16].

One point needs saying up front: the samples in this paper were not coffee. "Coffee ring" is used here as a general name for this kind of deposit. What the authors actually dried were drops of water containing fluorescently labelled DNA.

The core idea: make the top evaporate fastest

The authors reasoned as follows. A coffee ring forms because the edge evaporates fastest and the internal flow heads for the edge. If the apex of the drop could be made to evaporate much faster than anywhere else, the internal flow might reverse and run from the edge towards the centre [1].

Their tool was a carbon dioxide laser. CO₂ lasers emit at 10.6 µm, a wavelength that water absorbs very strongly, so light focused on the top of the drop heats a very thin layer of water at the apex rather than warming the whole drop evenly [1].

Experimental design

The main conditions were [1]:

  • Sample: 1 µL drops containing 10 nM single-stranded DNA, 24 nucleotides long and labelled with the fluorescent dye FAM.
  • Substrate: glass slides coated with a roughly 4.5 µm layer of the hydrophobic fluoropolymer Cytop (water contact angle about 100°), patterned with 100 µm-diameter wells that expose hydrophilic SiO₂ (contact angle about 43°). Each device measured 8 mm × 8 mm and carried a 4 × 4 array of wells spaced 2 mm apart. The hydrophobic coating lets the edge of the drop retreat easily, while the hydrophilic well anchors the drop in a chosen spot.
  • Laser group: a 10 W CO₂ laser was expanded, reflected, attenuated by about 75% and focused, giving about 40 mW at the sample, with a focal spot of about 29 µm. The power was stepped down during drying — based on the theoretical analysis, roughly in proportion to the cube of the receding drop radius — from 40 mW to zero over about 90 seconds.
  • Control group: identical drops on identical substrates, heated from below on a 50 °C hot plate, with the room at about 20 °C.

Figure 2 | Schematic of the experiment in the original paper. A: a CO₂ laser focused on the apex concentrates evaporation at the top, producing inward flow and a receding contact line. B: a hot plate heats from below, evaporation is fastest at the edge, the flow is outward and the contact line stays pinned.ZIRULAB, redrawn from Yen et al. 2018 (CC BY 4.0); CC BY 4.0 (derived content credited)

Figure 2 | The experiment in Yen et al. (2018), redrawn as a schematic. A: a CO₂ laser focused on the apex concentrates evaporation at the top of the drop, producing an inward internal flow while the contact line recedes. B: a 50 °C hot plate heats from below; evaporation is fastest at the edge, the flow is outward and the contact line stays pinned. Values are taken from the paper's Results and Table 1 [1]. Not to scale. Source: redrawn by ZIRULAB from the text of Yen et al. (2018).

Main findings

Very different deposits. Under the fluorescence microscope, the fluorescent deposit in the laser group was concentrated in the 100 µm target region, with weak signal outside it. In the hot-plate group the DNA formed a ring about 1.5 mm across, with most of the signal outside the well [1].

Figure 3 | Figure 2 of the original paper: fluorescent DNA deposits after laser-induced differential evaporation (A) and hot-plate heating (B), with intensity profiles along the yellow lines and schematics.Yen, T. M. et al. Sci. Rep. 8, 3157 (2018), Figure 2. https://doi.org/10.1038/s41598-018-20581-0; CC BY 4.0, unmodified

Figure 3 | Figure 2 of the original paper. A: laser-induced differential evaporation; a 1 µL drop dries in about 90 s and the fluorescent deposit is concentrated in the 100 µm well. B: hot-plate heating; drying takes about 480 s and leaves a ring about 1.5 mm across. Each panel shows a fluorescence image, the relative intensity profile along the yellow line and a schematic. Source: Yen, T. M. et al. Sci. Rep. 8, 3157 (2018), Figure 2, CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), unmodified. Note: the fluorescence images are shown in red, but FAM emits green light (the paper used a 520/35 nm emission filter), so the red is presumably a display pseudocolour — this is ZIRULAB's inference and is not stated in the paper. The paper also does not say which software produced the intensity profiles.

The result was repeatable. The authors ran six repeats of each method (Table 1) [1]:

Method Pattern size (µm) Capture ratio (%)
Laser-induced differential evaporation 101 ± 1 73.2 ± 5.2
50 °C hot plate 1504 ± 149 0.306 ± 0.039

(Mean ± standard deviation, n = 6. We recomputed the means and sample standard deviations from the six values printed in the table; they match the paper.)

The "capture ratio" is the summed fluorescence inside the 100 µm well divided by the summed fluorescence of the whole image. It was about 73% for the laser group and about 0.3% for the hot plate — more than two orders of magnitude apart. This ratio is not a direct count of DNA molecules. The authors suggest the laser group falls short of 100% because of background autofluorescence of the device, light scattering or non-specific adsorption of DNA to the surface [1].

The drops dried differently. From video recorded at a tilt of about 30–40°, the authors tracked the contact radius over time. On the hot plate it stayed at about 750 µm throughout — the constant-contact-radius (CCR) mode. Under the laser the contact radius kept shrinking and, in the later stage of drying (relative time about 0.4–0.8), showed the signature of the constant-contact-angle (CCA) mode [1]. The laser did not just change the internal flow; it also stopped the edge of the drop from staying pinned.

The flow was observed directly. The authors added 3.3 µm polystyrene beads (about 800 per µL) to water, filmed at 30 frames per second and tracked the beads with a custom MATLAB program. In a 1 µL drop the beads moved upwards and inwards towards the apex at a mean speed of about 11.2 mm/s; beads near the centre averaged about 13.3 mm/s and those near the edge about 9.2 mm/s [1]. An infrared camera (FLIR A655sc) measured apex temperatures of about 70.8 °C for a 1 µL water drop and about 38.0 °C for a 5 µL drop [1].

The model explains the change in deposit shape. Building on Man and Doi's model of drying drops [8], the authors added a term for local laser-driven evaporation, derived an analytical expression for the deposit density and introduced a parameter G linked to the strength of laser evaporation. With a material parameter k_cl = 3, the curve for G = 0 matched the ring-shaped hot-plate deposit and the curve for G = 4.5 showed a central peak similar to the laser deposit [1]. This is qualitative agreement in shape, not independent validation of predictive accuracy.

04. How did a free program take part in the research?

What the paper says about ImageJ

ImageJ appears only in the Methods subsection on deposition-pattern imaging and analysis. The sentence reads: "Both pattern size and capture ratio analysis were implemented using the ImageJ software." [1]

ImageJ is not mentioned anywhere else in the main text or the Supplementary Information. What follows is therefore limited strictly to what the paper discloses.

Input, processing, output

  • Input images: micrographs of the dried fluorescent DNA deposits, taken on a Keyence BZ-9000 inverted fluorescence microscope with a 5× or 20× objective depending on pattern size; mercury-lamp excitation through a 472.5/30 nm filter and emission through a 520/35 nm filter [1].
  • Measurement 1: pattern size, describing how far the deposit spread. The paper states that the Feret diameter of the best-fitting ellipse to the fluorescent DNA pattern was used [1].
  • Measurement 2: capture ratio, the integrated fluorescence intensity inside the 100 µm well divided by the integrated fluorescence intensity of the whole image [1].
  • Output: the six pattern sizes and capture ratios per method reported in Table 1 [1].

Figure 4 | ImageJ workflow. Top row (solid, green): steps stated in the paper's Methods. Dotted box: key parameters the paper does not disclose. Bottom row (dashed, purple): extensions suggested by ZIRULAB, not used by the authors.ZIRULAB; ZIRULAB original

Figure 4 | ImageJ's role in the original study and ZIRULAB's suggested extensions. Solid boxes, top: the input and the two measurements stated in the paper's Methods, with the corresponding Table 1 results [1]. Dotted box, right: processing details the paper does not disclose. Dashed boxes, bottom: an extended workflow suggested by ZIRULAB, not the authors' procedure. Source: drawn by ZIRULAB.

How the numbers support the conclusion

Looking at Figure 3, the difference between the two results is obvious. But a striking image only shows that one run turned out a certain way. The ImageJ measurements turned the images into two numbers that can be compared:

  • Pattern size answers "how far did it spread?". The laser group gives 101 µm with a standard deviation of 1 µm — essentially the diameter of the well itself. The hot-plate group gives about 1.5 mm and varies much more between repeats (standard deviation 149 µm), suggesting that ring size depends on where the edge happens to pin.
  • Capture ratio answers "how much of the signal landed in the target area?". This is the question that matters for biochips and liquid-biopsy assays: whether the sample was concentrated onto the intended detection spot.

With six repeats per method, readers can see that the difference is not a one-off. This is part of what allows the paper to say that the laser method avoided coffee-ring deposition in a repeatable way [1].

Figure 5 | A, B: pattern size and capture ratio for the six repeats of each method in Table 1, on log scales. C: model deposit density from the paper's Eq. 13, with k_cl = 3 and G = 0, 1.5, 4.5 and 9.ZIRULAB; data from Yen et al. 2018 (CC BY 4.0); CC BY 4.0 (derived content credited)

Figure 5 | Published numbers, re-plotted. A, B: the six replicate values printed in Table 1 (points) and their means (bars), on logarithmic axes [1]. C: deposit density computed by ZIRULAB from the paper's Eq. 13 (k_cl = 3; G = 0, 1.5, 4.5 and 9, the same parameter values as the model curves in the paper's Figure 6), each normalised to its maximum over 0.1 ≤ r/R₀ ≤ 1. For G > k_cl the curve diverges as r → 0, so the choice of normalisation range changes how the curve looks. Panel C is a model calculation, not measured data. Source: data and equation from Yen et al. (2018); plotted by ZIRULAB.

What the method can and cannot tell us

In this study, ImageJ did a fairly simple but necessary job: define regions on an image, sum intensities and measure size. These operations are transparent in principle, and anyone can repeat them with the same free software.

The paper's disclosure, however, has clear gaps. We could not find the thresholding or segmentation method, whether background was subtracted, the bit depth or exposure settings of the original images, the ImageJ version, or any macro code. The data-availability statement says the data are available from the corresponding author on reasonable request [1], so the original images are not public.

These gaps matter. Take the capture ratio: its denominator is the integrated intensity of the "whole image", and background fluorescence accumulates with field-of-view area. The paper says a 5× or 20× objective was used depending on pattern size, and a different field of view means a different background contribution to the denominator. The authors themselves list background fluorescence as one possible reason the laser group falls short of 100% [1]. This does not overturn the conclusion — the two groups differ by more than two orders of magnitude — but it does mean the specific value of 73.2% depends on the imaging conditions and should not be compared directly with other studies outside those conditions.

Where ImageJ sits in this study: the laser optics, the DNA deposition experiments, the contact-angle video analysis, infrared thermometry, bead tracking (in MATLAB) and the theoretical derivation make up the body of the paper. ImageJ handled the step that turned the final deposits into two quantitative measures. It is not the star of the study, but without that step the difference in Figure 3 would have remained a matter of "it looks different".

05. From pictures to scientific data

Below is a practice workflow for analysing dried-drop deposits in ImageJ. Unless marked otherwise, every step here is a [ZIRULAB suggestion], not a procedure used by the paper's authors. Menu names follow the official ImageJ documentation [12, 13, 14].

Function Menu What it does Relation to the paper
Set Scale Analyze > Set Scale Converts pixels to µm or mm using a known length in the image The paper reports µm, so a conversion was made, but the method is not described
Threshold Image > Adjust > Threshold Sets lower and upper grey levels to separate deposit from background; offers 16 automatic methods Not described
Measure / Set Measurements Analyze > Measure Measures area, mean grey value, integrated density (IntDen, RawIntDen), Feret diameter, fitted ellipse, etc. ImageJ was used for pattern size and the integrated-intensity ratio; settings not given
Plot Profile Analyze > Plot Profile Plots pixel intensity along a line The paper's figure shows line profiles; software not stated
ROI Manager Analyze > Tools > ROI Manager Stores, reuses and batch-measures regions of interest Not described
Macro Plugins > Macros > Record Records actions as a script for batch processing Not provided

An example image-analysis workflow

  1. Keep the original. Work only on copies, and note the camera or microscope, magnification and exposure.
  2. Calibrate. Include a ruler or an object of known size in the frame. Draw a straight line along the known length and enter the real length and unit in Set Scale.
  3. Convert to greyscale. For an ordinary photo, Image > Type > 8-bit will do; for fluorescence images it is better to keep the original single-channel data. When converting RGB to 8-bit, ImageJ by default averages the three channels or uses a weighted formula [13], so this step changes what "intensity" means.
  4. Draw regions. Outline the whole deposit with the oval tool and add it to the ROI Manager; then draw a smaller circle for the "centre".
  5. Choose measurements. In Analyze > Set Measurements, tick Area, Mean, Integrated Density, Feret's Diameter and Fit Ellipse. According to the documentation, IntDen is the product of area and mean grey value, and RawIntDen is the sum of the pixel values [12].
  6. Measure and take the ratio. Dividing the RawIntDen of the centre by the RawIntDen of the whole deposit gives a ratio similar in spirit to the capture ratio. Note that the paper divided by the whole image, not the whole deposit, so the two definitions differ. Use a background-corrected signal image: max(0, B − I) for dark deposits and max(0, I − B) for bright fluorescence, where B is the matching blank background and I is pixel intensity. Do not calculate a ratio if the denominator is zero. Evaluate subsequent intensity profiles on this signal image.
  7. Look at a profile. Draw a line across the diameter and use Plot Profile. A coffee ring shows up as a curve that is high at both ends and low in the middle.
  8. Batch-process and keep a record. Open Plugins > Macros > Record and do the analysis once by hand; the recorded commands can be turned into a macro that applies the same settings to a whole set of images.

06. The research value behind a small program

ImageJ was developed by Wayne Rasband at the US National Institutes of Health (NIH) as the successor to NIH Image [9]. ImageJ 1.x is in the public domain in the United States; Fiji, a distribution built around ImageJ with many plugins pre-installed, is released under the GPL [10, 15].

Its strengths are straightforward:

  • it is free, so any lab or student can use it, and reviewers and readers can check results with the same tool;
  • it is transparent: measurement definitions such as IntDen and Feret diameter are written down in the official documentation [12];
  • it is scriptable: the macro language records and repeats a workflow, reducing variation from manual steps [14];
  • it has a large plugin ecosystem, and is widely used for cell counting, fluorescence quantification, particle analysis, materials microstructure, leaf-area measurement in plant science and dimensional checks in industrial inspection [9, 10].

Its limits need stating just as plainly:

  • the program only does what it is told; choices of threshold or background subtraction can change results substantially;
  • manual steps in the graphical interface are hard for others to reproduce unless they are recorded;
  • for tasks such as tracking many moving particles, researchers often turn to dedicated tools or their own code — in this paper, bead tracking was done with a custom MATLAB program [1];
  • the image itself sets the ceiling: problems from over-exposure, compression or uneven lighting cannot be fixed later in analysis.

Returning to the paper: using ImageJ did not in itself make the conclusion reliable. The reliability comes from the controlled comparison (laser and hot plate with the same liquid, substrate and environment), the repeats (n = 6), and several independent lines of evidence — deposit images, contact radius, infrared thermometry, bead tracking and the theoretical model — that support one another. ImageJ's contribution was to make one link in that chain — how much was deposited and how far it spread — measurable and comparable. Had the authors also published the original images and processing parameters, any reader could have checked that link independently.

07. Conclusion

Coffee rings come from a competition between several processes. When evaporation is fastest at the edge and the contact line is pinned, an outward replenishing flow carries particles to the rim; Marangoni flow, particle shape and the acceleration of flow at the end of drying also shape the final pattern.

Yen and colleagues (2018) focused a CO₂ laser of about 40 mW on the apex of the drop so that the top evaporated fastest, turning the internal flow towards the centre and letting the contact line retreat. In their fluorescent-DNA experiments, the deposit changed from a ring about 1.5 mm across to a central spot about 101 µm across, and the capture ratio rose from about 0.3% to about 73%. These conclusions hold for the paper's conditions: 1 µL aqueous drops, 10 nM short DNA, and hydrophobic Cytop substrates with hydrophilic microwells. The paper did not test coffee.

ImageJ carried out two quantitative measurements in this study: pattern size and capture ratio. It turned differences in microscope images into numbers that could be repeated and compared. The specific processing parameters and original images were not published, however, which limits independent verification.

The value of free software lies in lowering the barrier to checking: the same tool is available to everyone. Whether a study can be trusted still depends on its experimental design, its measurement methods and how much of its data is made public.

08. References and sources

[1] Yen, T. M., Fu, X., Wei, T., Nayak, R. U., Shi, Y. & Lo, Y.-H. Reversing Coffee-Ring Effect by Laser-Induced Differential Evaporation. Scientific Reports 8, 3157 (2018). https://doi.org/10.1038/s41598-018-20581-0 (CC BY 4.0)

[2] Yen, T. M. et al. Supplementary Information for "Reversing Coffee-Ring Effect by Laser-Induced Differential Evaporation" (file 41598_2018_20581_MOESM1_ESM.pdf), available from the article page of [1].

[3] Deegan, R. D., Bakajin, O., Dupont, T. F., Huber, G., Nagel, S. R. & Witten, T. A. Capillary flow as the cause of ring stains from dried liquid drops. Nature 389, 827–829 (1997). https://doi.org/10.1038/39827

[4] Deegan, R. D., Bakajin, O., Dupont, T. F., Huber, G., Nagel, S. R. & Witten, T. A. Contact line deposits in an evaporating drop. Physical Review E 62, 756–765 (2000). https://doi.org/10.1103/PhysRevE.62.756

[5] Hu, H. & Larson, R. G. Marangoni Effect Reverses Coffee-Ring Depositions. The Journal of Physical Chemistry B 110, 7090–7094 (2006). https://doi.org/10.1021/jp0609232

[6] Yunker, P. J., Still, T., Lohr, M. A. & Yodh, A. G. Suppression of the coffee-ring effect by shape-dependent capillary interactions. Nature 476, 308–311 (2011). https://doi.org/10.1038/nature10344

[7] Marín, Á. G., Gelderblom, H., Lohse, D. & Snoeijer, J. H. Order-to-Disorder Transition in Ring-Shaped Colloidal Stains. Physical Review Letters 107, 085502 (2011). https://doi.org/10.1103/PhysRevLett.107.085502

[8] Man, X. & Doi, M. Ring to Mountain Transition in Deposition Pattern of Drying Droplets. Physical Review Letters 116, 066101 (2016). https://doi.org/10.1103/PhysRevLett.116.066101

[9] Schneider, C. A., Rasband, W. S. & Eliceiri, K. W. NIH Image to ImageJ: 25 years of image analysis. Nature Methods 9, 671–675 (2012). https://doi.org/10.1038/nmeth.2089

[10] Schindelin, J. et al. Fiji: an open-source platform for biological-image analysis. Nature Methods 9, 676–682 (2012). https://doi.org/10.1038/nmeth.2019

[11] ImageJ official website. https://imagej.net/

[12] ImageJ documentation: Analyze menu (Set Measurements, Measure, Set Scale, Plot Profile, ROI Manager). https://imagej.net/ij/docs/menus/analyze.html

[13] ImageJ documentation: Image menu (Adjust > Threshold, Type, Color). https://imagej.net/ij/docs/menus/image.html

[14] ImageJ documentation: The ImageJ Macro Language. https://imagej.net/ij/developer/macro/macros.html

[15] ImageJ: Licensing. https://imagej.net/licensing/

[16] Crossref metadata record for 10.1038/s41598-018-20581-0. https://api.crossref.org/works/10.1038/s41598-018-20581-0 (queried 28 November 2026)

Image credits: Figures 1, 2, 4 and 5 were drawn by ZIRULAB; the data and equation in Figure 5 are from [1]. Figure 3 is Figure 2 of [1], used unmodified under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). The cover is an illustration drawn by ZIRULAB, not an experimental photograph.