Start with the quick checks
Most camera problems are not a broken camera. A case or accessory in the way, a dirty lens, another app holding on to the camera, or a small software glitch are far more common. Work through these steps in order and test the camera after each one.
- Remove the case and add-ons. Take off anything that could cover the lens or flash or put a magnet near the camera, such as a clip-on lens, a magnetic mount or a protective film.1
- Clean the lens. If photos look blurry or hazy, wipe the lens gently with a soft microfibre cloth.1,3
- Close other apps. Close apps running in the background, especially video-calling apps, then reopen the camera.3
- Restart the phone. Apple, Google and Samsung all list a restart as one of the first fixes.1,3,5
If the camera works again, you are done. If not, follow the steps for your phone below.
iPhone: what to try
Install the latest version of iOS, then test the camera by taking a photo.1
Test both cameras. Open Camera and tap the switch button to flip between the front and rear cameras. If only one fails, note which one before you contact Apple.1
If low-light photos show motion blur and you use a lens converter, metal case or magnetic lens mount, remove it and try again.1
If the flash is the problem, open Control Centre and turn on the torch. On iPhone X and later, swipe down from the top-right corner. If the torch works but the flash only fires sometimes, check the flash setting in the Camera app: it may be set to Auto rather than On.1
If the camera screen stays black
Apple now offers a built-in check for this. Turn the iPhone off, then press and hold the side button as it starts up to open Recovery Assistant. Tap Diagnostics Mode, choose Mobile Resource Inspector and tap Start Diagnostic. If it finds a problem, Apple recommends getting the iPhone serviced.1

If one app cannot use the camera
If the Camera app works but WhatsApp, Instagram or another app shows a black box, check its access. Go to Settings > Privacy & Security > Camera and turn the switch on for that app.2 A green dot at the top of the screen means an app is using the camera right now; an orange dot means the microphone is in use.2
Android: what to try
Menus differ between makers, so the steps below cover Google Pixel and Samsung Galaxy phones. Other Android phones usually have similar options under Settings > Apps.
Google Pixel
Restart the phone. On Pixel 6 and later, press and hold the Power and Volume up buttons, tap Power off, then hold Power to turn it back on. On Pixel 5a and earlier, press and hold Power and tap Power off.3
Clear the Camera app's cache: touch and hold the Camera app icon, tap App info > Storage & cache > Clear cache.3
Update the Camera app: open the Play Store, tap your profile icon, then Manage apps & devices, and install any Pixel Camera update. Then check for a system update in Settings > System > Software updates.3
Test in safe mode, which turns off apps you have downloaded. If the camera works in safe mode, restart to leave it, then uninstall your most recently installed apps one at a time until the problem stops.3
Google notes that if other apps also crash when they use the camera, the fault may be with the hardware rather than the app.3

Samsung Galaxy
Clear the Camera app's data: go to Settings > Apps > Camera > Storage > Clear data, then tap Delete to confirm.5
Restart: swipe down, tap the power icon and tap Restart. If the phone is frozen, press and hold the Side key and Volume down together for more than seven seconds.5
Run a camera test in the Samsung Members app: open it, go to Support (called Get Help in some regions), then Phone diagnostics, and choose Camera.5,6
Free up storage, install any update from Settings > Software update, and try Safe Mode to see whether a downloaded app is interfering with the camera.6
Clearing data is not a factory reset
On Samsung phones, clearing the Camera app's data resets its settings to default but keeps your saved photos and videos.5 A factory reset is different: it erases everything on the phone, so back up your phone before you ever try one. If you lost photos while fixing the camera, see how to recover deleted photos.
If one app cannot use the camera
Check that the app has permission. Open Settings > Apps, tap the app (tap See all apps if you cannot find it), then Permissions > Camera, and choose "Allow only while using the app" or "Ask every time".4 On recent Pixel phones there is also a switch that blocks the camera for every app: look in Settings > Security & privacy > Privacy > Privacy controls and make sure Camera access is turned on.4
If the Camera app itself keeps crashing with a "has stopped" message, our guide to an Android app that keeps stopping has more general fixes. A phone that is very low on space can also misbehave, so it is worth checking how to free up storage on your phone.
When to get help
It is probably a hardware fault if the camera still fails after a restart, an update and a safe-mode test, or if Apple's or Samsung's diagnostic test reports a problem. Apple recommends booking a repair through its support site, Google points Pixel owners to its repair service, and Samsung says the camera module may need to be checked at a service centre.1,3,5 Mention which camera fails (front, rear, or one lens) and which steps you have already tried.
Common questions
Will clearing the Camera app's data delete my photos?
On Samsung Galaxy phones, no. It only resets the camera's settings to default, while photos and videos stay in your Gallery.5,6
Why is there a green dot at the top of my iPhone screen?
The green dot shows that an app is using the camera. If you are not using the camera yourself, open Control Centre to see which app recently used it, then check that app's access in Settings > Privacy & Security > Camera.2
Why is my Pixel slow to take a photo?
Google suggests checking that the phone is not hot, removing the case, cleaning the lens and closing background apps. Turning off the timer and the flash in the Camera app's settings can also remove a delay.3 Heat affects phones in other ways too: see why your phone gets hot while charging.
