Tuning the threshold voltage of a transistor is crucial for realizing robust digital circuits. For silicon transistors, the threshold voltage can be accurately controlled by doping. However, it remains challenging to tune the threshold voltage of single-wall nanotube (SWNT) thin-film transistors. Here, we report a facile method to controllably n-dope SWNTs using 1H-benzoimidazole derivatives processed via either solution coating or vacuum deposition. The threshold voltages of our polythiophene-sorted SWNT thin-film transistors can be tuned accurately and continuously over a wide range. Photoelectron spectroscopy measurements confirmed that the SWNT Fermi level shifted to the conduction band edge with increasing doping concentration. Using this doping approach, we proceeded to fabricate SWNT complementary inverters by inkjet printing of the dopants. We observed an unprecedented noise margin of 28 V at V DD = 80 V (70% of 1/2V DD ) and a gain of 85. Additionally, robust SWNT complementary metal−oxide−semiconductor inverter (noise margin 72% of 1/2V DD ) and logic gates with rail-torail output voltage swing and subnanowatt power consumption were fabricated onto a highly flexible substrate. nanomaterials | n-doping | inkjet-printed | CMOS circuit F lexible electronics have attracted increasing attention recently due to the plethora of possible and realized applications in radio-frequency identification cards (1, 2), flexible displays (3, 4), and digital processors (5). Solution-processed single-walled carbon nanotubes (SWNTs) are a promising candidate for flexible circuits due to their high charge carrier mobility (6), excellent flexibility/stretchability (7-9), and their compatibility with lowcost, large-area manufacturing processes, such as printing (1, 10) of SWNTs. Their applications in thin-film transistors (TFTs) and integrated logic circuits (11-14) have been demonstrated. However, to achieve robust digital circuits with high immunity against the influence of electronic noise in the system, it is important to be able to control the specific value of the threshold voltage of a transistor during the fabrication process (15,16). This is because transistor threshold voltage determines the input voltage at which a circuit switches between two logic states (trip voltage of an inverter). When the trip voltage is half of the supply voltage, the circuit has the largest noise margin, which is a quantitative measure of the immunity of a logic circuit against noise and a figure of merit to characterize the robustness of the circuit (17, 18). If threshold voltage cannot be controlled during the fabrication process, the resulting circuit might not work reliably due to the electrical noise that is always present in the system. Because SWNTs have ambipolar electrical transport properties (19), accurately tuning the threshold voltage permits the construction of complementary metal−oxide−semiconductor (CMOS) circuits that use both the p-type and n-type character of SWNTs. The advantages of CMOS circuits compared with unipolar ...