Featured Article

Arduino Library Search: Where Does It Look?

William Aug 14, 2026

Ever been puzzled about how Arduino locates and utilizes libraries? We're here to demystify this for you. Understanding Arduino's library search mechanism is crucial for efficient programming. Let's dive right in.

an arduino library of things sits open on a table next to its contents
an arduino library of things sits open on a table next to its contents

Arduino's library management is quite straightforward yet robust, ensuring that your sketches find the necessary libraries without any hiccups. But where does Arduino look for these libraries? Let's break this down.

Arduino Libraries! What they are, how they work and how to install them
Arduino Libraries! What they are, how they work and how to install them

Default Library Locations

The Arduino IDE, by default, searches for libraries in specific locations on your computer. Understanding these default paths is crucial.

Arduino libraries
Arduino libraries

The main locations where Arduino looks for libraries are: the sketchbook folder's libraries subfolder, the system's program files folder, and the IDE's library folder. Each of these has a distinct purpose.

Sketchbook Folder's Libraries Subfolder

Libraries
Libraries

The sketchbook folder is a user-defined storage area for your Arduino sketches. By default, it is located in your home directory (e.g., C:\Users\YourUsername\Documents\Arduino).

Inside the sketchbook folder, there's a 'libraries' subfolder where you can place any library files. This location has priority while searching for libraries, ensuring efficient usage of local resources.

System's Program Files Folder

Where Are Arduino Libraries Located? How To Find Them On Windows, Mac, And Linux - SlashGear
Where Are Arduino Libraries Located? How To Find Them On Windows, Mac, And Linux - SlashGear

Arduino also searches for libraries in the system's program files folder, usually located at C:\Program Files (x86)\Arduino\Libraries. This folder contains core libraries that come pre-installed with the Arduino IDE.

These core libraries power many of Arduino's basic functions, and they're fundamental to smooth operation. You'll often use them in your sketches, so it's vital to understand where they're located.

Custom Library Locations

Arduino - Install and Use Arduino Libraries
Arduino - Install and Use Arduino Libraries

While Arduino searches the default locations first, you can also instruct it to look in custom paths for libraries. This flexibility allows you to manage your libraries more efficiently.

To make Arduino search in custom paths, you need to configure the 'Additional Boards Manager URLs' and 'Libraries' fields in the File > Preferences menu. Here's how:

How to Install a Library Onto the Arduino IDE - Tutorial45
How to Install a Library Onto the Arduino IDE - Tutorial45
📚 Build Your Own Arduino Library for ESP32!
📚 Build Your Own Arduino Library for ESP32!
Import a Code Library to Arduino
Import a Code Library to Arduino
the top 10 best arduino sensor kits for beginners infographical poster
the top 10 best arduino sensor kits for beginners infographical poster
Forget the Arduino IDE: 5 Awesome Arduino IDE Alternatives - Learn Robotics
Forget the Arduino IDE: 5 Awesome Arduino IDE Alternatives - Learn Robotics
All About Arduino Libraries
All About Arduino Libraries
Adding a New Library to Arduino IDE and Using It | Arduino
Adding a New Library to Arduino IDE and Using It | Arduino
Library Projects in the Visual Studio Arduino Build Tool | Articles | MegunoLink
Library Projects in the Visual Studio Arduino Build Tool | Articles | MegunoLink
Types of arduino board
Types of arduino board
📚 Create Your Own Arduino Library for ESP32 — Step-by-Step Guide!
📚 Create Your Own Arduino Library for ESP32 — Step-by-Step Guide!
Arduino Libraries Download and Projects they are used in “Project codes”
Arduino Libraries Download and Projects they are used in “Project codes”
All About Arduino Libraries
All About Arduino Libraries
Understanding an Arduino Library :: Video #2 :: Arduino Library Series
Understanding an Arduino Library :: Video #2 :: Arduino Library Series
Top 7 Arduino Sensors Every Beginner Should Know
Top 7 Arduino Sensors Every Beginner Should Know
Arduino Library for Proteus
Arduino Library for Proteus
7 Arduino Projects Every Beginner Should Build
7 Arduino Projects Every Beginner Should Build
Arduino Library for Proteus - Beginner Friendly Tutorial
Arduino Library for Proteus - Beginner Friendly Tutorial
I2C LCD Display Interfacing with Arduino
I2C LCD Display Interfacing with Arduino
the function of an arduino kit is shown in blue and white striped paper
the function of an arduino kit is shown in blue and white striped paper

Adding Custom Board Manager URLs

Enter the URLs of the boards manager repositories you want Arduino to use. This is useful when you want to use community-created boards that aren't included in the default IDE.

For instance, if you're using a custom board like the ESP32, you would add the URL of the board's repository, e.g., http://arduino.esp8266.com/stable/package_esp8266_index.json.

Adding Custom Library Folders

Using the 'Libraries' field, you can add directories containing library files that you want Arduino to search. This is helpful when you have a dedicated folder for your custom libraries.

Just point Arduino to the directory by providing the path, e.g., /home/user/Document/Libraries. After doing so, Arduino will search this location for libraries whenever you use them in your sketches.

Understanding Arduino's library search mechanism is key to optimizing your coding environment. With this knowledge, you can create libraries, manage them, and use them effectively in your projects. Happy coding!