How to Turn Off Mobile Data When iPhone Connects to Wi-Fi

iPhone showing mobile data is turned off

Your iPhone's constant connection to mobile data drains the battery faster. That’s why it’s recommended that you turn off mobile data when not in use. But let’s face it, most of us forget to do it. So today, I am going to show you how to auto-turn off mobile data when your iPhone connects to Wi-Fi.

Turn off mobile data when iPhone connects to Wi-Fi

To auto-turn off mobile data when iPhone connects to Wi-Fi, we will use the Shortcuts automation. The shortcuts app comes pre-installed on your iPhone, but if you have deleted it, you can install it from the App Store link.

1. Launch the Shortcuts app on your iPhone and tap to open the Automation tab.

Shortcuts app on iPhone showing Automation tab

2. Tap the New Automation button or the plus sign in the top-right corner.

plus sign in the top-right corner

3. Search for Wi-Fi and tap to add it to the automation.

Wi-Fi action in automation

4. Tap the Choose button and choose your Home and Office Wi-Fi. Select the Any Network option if you want the automation to run irrespective of which Wi-Fi your iPhone connects to.

Choose button showing Wi-Fi network screen

5. Select the Run Immediately option and tap the Next button in the top-right corner.

Run Immediately option

6. Search for the Set Cellular Data option and add it to the automation.

Set Cellular Data option

7. Tap the On field to change it to Off and tap the Done button to save the automation.

Changing on from OFF

Now, whenever your iPhone connects to Wi-Fi, the automation will automatically turn off the mobile data.

Turn on mobile data when Wi-Fi disconnects on iPhone

I also recommend that you create another automation which automatically turns on mobile data when your iPhone leaves the connected Wi-Fi network so you don’t have to turn it on manually.

1. We will start by creating a new automation and adding the Wi-Fi action.

Creating a new automation and adding Wi-Fi action

2. Tap the Choose button and select the Wi-Fi networks. I will select Any Network, as I want my mobile data to turn on as soon as my iPhone disconnects from any Wi-Fi network.

Selecting the Any Network option

3. Tap to select the Network Left option and enable the Run Immediately option. Tap the Next button to proceed.

Selecting network left and run immediately option

4. Search and add Set Cellular Data action.

Choosing set Cellular data option

5. Leave the action to turn on the cellular data and tap the Done button to save the automation.

Saving automation

You have now created a set of automation that turns off mobile data when you connect to a Wi-Fi network and turns it back on when you disconnect from Wi-Fi. Before you go, click here to learn how to transfer photos from iPhone to external hard drive.