ThisCalculator

Everyday

Recover Deleted Files on Mac: Full Guide

Updated · Standard formula, shown below

Recover Deleted Files on Mac: Full Guide

Yes, you can recover deleted files on a Mac in most cases, and the method depends on how the file was deleted and how quickly you act. This guide covers the built-in options like Trash and Time Machine, plus what to do when those fail, including using recovery software and avoiding common mistakes.

How Deletion Works on a Mac

When you delete a file on macOS, it usually goes to the Trash. The file isn’t erased from the disk; its space is simply marked as available. The actual data remains until the system overwrites it with new data. Emptying the Trash does the same thing on a larger scale—it removes the file’s reference from the file system but doesn’t immediately scrub the disk sectors. This is why recovery is often possible, but it’s also why you should stop using the Mac as soon as you realize a file is missing.

macOS uses the APFS (Apple File System) on modern Macs, which handles deletion differently than older HFS+ systems. APFS uses copy-on-write and snapshots, which can sometimes make recovery easier if you have a snapshot available. However, the core principle remains: the less you write to the disk after deletion, the better your chances.

First Steps: Check Trash and Recent Items

Before trying anything technical, check the obvious places. Open the Trash icon in your Dock. If the file is there, right-click it and select “Put Back” to restore it to its original location. Also check the Recent Items folder in the Apple menu (  > Recent Items) to see if you can locate the file’s name and its last known path.

If you deleted the file using a keyboard shortcut like Option+Command+Delete, it bypasses the Trash entirely. This is a common cause of panic, but the data is still likely on the disk. Similarly, if you emptied the Trash, the file is gone from the visible file system but may still be recoverable with software.

Time Machine: The Built-in Backup Solution

If you have Time Machine enabled, it’s the most reliable recovery method. Time Machine makes hourly, daily, and weekly backups to an external drive or network volume. To restore a file:

  1. Open the folder where the file was last located.
  2. Launch Time Machine from the menu bar (the clock icon) or from System Settings > General > Time Machine.
  3. Use the timeline on the right or the arrows to go back to a date before the file was deleted.
  4. Find the file, select it, and click “Restore”.

This works for files deleted from your Home folder, Documents, Desktop, and most other locations. If you never set up Time Machine, this option won’t help, but you can also check if a local snapshot exists. APFS local snapshots are automatically created by Time Machine even without an external drive, but they’re not guaranteed and are purged when disk space is low.

Using Recovery Software

When Trash and Time Machine fail, third-party recovery software is your next option. These tools scan the raw disk for data blocks that still contain the file’s content. Popular options include Disk Drill, Data Rescue, and PhotoRec. They work by reading the disk at a low level and reconstructing files from fragments.

Important: install the recovery software on a different drive if possible, or at least don’t save anything new to the drive you’re recovering from. Running the software from the same disk risks overwriting the very data you’re trying to save. Connect an external drive with enough space to store the recovered files.

The scan can take hours depending on disk size and speed. Most tools offer a free trial that shows what’s recoverable, but you’ll need to pay for the full version to actually export the files. There are free options like PhotoRec, but they have a steeper learning curve and don’t have a graphical interface.

How to Choose Between Recovery Methods

Your choice depends on the situation:

  • File in Trash: Use “Put Back” – instant and free.
  • Trash emptied recently: Try Time Machine first if you have backups; otherwise, use recovery software.
  • File deleted with Option+Command+Delete: Go straight to recovery software unless you have a Time Machine backup.
  • File lost due to disk format or partition error: Recovery software is the only option, and you should stop using the drive immediately.
  • File lost from an external drive: Unplug it and use recovery software on another computer.

Common Mistakes That Ruin Recovery

The biggest mistake is continuing to use the Mac normally. Every new file, download, or even opening an app can write to the disk and overwrite the deleted file’s data. Avoid installing software, downloading files, or even browsing the web (which writes cache files) until you’ve attempted recovery.

Another mistake is trying to recover to the same drive. If you restore a file to the same disk, the recovery process itself might overwrite other deleted files. Always save recovered data to a different drive.

Finally, don’t defragment or run Disk Utility’s First Aid on the drive before recovery. These tools can modify the file system structure and make recovery harder.

What to Do If Recovery Fails

If software can’t find your file, it’s likely that the data has been overwritten. At this point, the only option is to accept the loss and prevent future occurrences. Enable Time Machine, set up a cloud backup service, or use a combination of both. For critical files, consider a versioning service like Dropbox or Google Drive, which keeps deleted file versions for a limited time.

If the file was on an SSD, recovery is even harder because of TRIM. TRIM is a feature that actively erases deleted data blocks to maintain performance. On modern Macs with SSDs, TRIM is enabled by default, and once it runs, the data is gone for good. This is why acting immediately is critical.

Frequently Asked Questions

Can I recover files after emptying the Trash? Yes, if the data hasn’t been overwritten. Use Time Machine if you have it; otherwise, use recovery software immediately. The longer you wait, the lower the chance.

Does Time Machine keep deleted files forever? No. Time Machine keeps hourly backups for 24 hours, daily backups for a month, and weekly backups until the backup drive is full. After that, the oldest backups are deleted to make room for new ones.

Is recovery software safe to use? Generally yes, but only download from official websites. Some free tools bundle adware. Also, never install recovery software on the drive you’re trying to recover from.

Can I recover a file deleted from an external drive? Yes, but stop using the drive immediately. Unplug it and connect it to a different computer to run recovery software. The same principles apply: the less you use the drive, the better.

How long does a recovery scan take? It depends on the drive size and speed. A 1TB external HDD can take several hours. SSDs are faster but may not yield as many results due to TRIM.

Is there a free way to recover deleted files? Yes. Time Machine is free if you have a backup drive. PhotoRec is a free command-line tool, and some commercial tools have free trial versions that allow you to see if files are recoverable before paying.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.