keepcalculator

06 Numbers and Powers

Trash Data Recovery: How It Works

Card No. 06·14423 · Updated · Standard formula, shown below

Overwrite risk score 30 %
Time since deletion
24 hours
You entered
Storage size
256 GB
You entered
You enter
Time since deletion, Storage size
You get
Overwrite risk score
Rounding
0 dp

Trash data recovery is the process of restoring files that were deleted and sent to the Recycle Bin (Windows) or Trash (macOS). You can typically recover these files by opening the Trash, right-clicking the item, and selecting “Restore,” provided the Trash hasn’t been emptied and the file hasn’t been overwritten. This article explains the underlying mechanics, the limitations, and the practical steps for both simple and more complex recovery scenarios.

Formula

The overwrite risk score is a heuristic estimate, not a physical law. It combines time and storage size to give a rough idea of how likely a deleted file has been overwritten. The formula is:

Risk (%) = min(100, (Time in hours / 24) × 10 + (Storage size in GB / 256) × 20)

  • Time in hours – how long ago the file was deleted. More time means more chances for new data to be written.
  • Storage size in GB – the total capacity of the drive. Larger drives take longer to fill, so the same amount of new data overwrites a smaller fraction of the disk.

The output is a percentage from 0 to 100. A score above 80 suggests the file is likely already overwritten. This is a general guide, not a guarantee.

Worked Example

Take the default values: 24 hours since deletion and a 256 GB drive.

  1. Time factor: (24 / 24) × 10 = 10%
  2. Size factor: (256 / 256) × 20 = 20%
  3. Sum: 10 + 20 = 30%

The result is a 30% overwrite risk score. That means the file is probably still recoverable, but you should act quickly.

How the Trash Actually Works

When you delete a file and it goes to the Trash, the operating system does not erase the data. It simply marks the space on the drive as available. The file’s directory entry is moved to a special folder (e.g., $Recycle.Bin on Windows, .Trash on macOS). The actual ones and zeros remain on the disk until something else writes over them.

This is why “Restore” works instantly – the system just moves the directory entry back. The data was never gone. The moment you empty the Trash, the file’s entry is removed entirely, and the space becomes fully available for new writes. From that point, recovery depends on whether the old data has been overwritten.

When Recovery Is Easy vs. Hard

Recovery difficulty falls into three clear tiers:

  • Trash not emptied – easiest. Open Trash, right-click, Restore. No software needed.
  • Trash emptied, but little new data written – possible with file recovery software. The old data is still on the disk, just unlinked.
  • Trash emptied and significant new data written – very hard or impossible. The original data may be partially or fully overwritten.

For an SSD (solid-state drive), there is an additional complication: the TRIM command. Modern SSDs automatically erase unused blocks shortly after deletion. Once TRIM runs, the data is physically gone, and no recovery tool can bring it back. This can happen within seconds or minutes after emptying the Trash, depending on the drive and OS settings.

How to Recover from the Trash (Step by Step)

If the file is still in the Trash, follow these steps:

  1. Double-click the Trash/Recycle Bin icon on your desktop.
  2. Locate the file. You can sort by “Date Deleted” to find it faster.
  3. Right-click the file and select Restore. It will return to its original folder.
  4. If you need it elsewhere, drag it out of the Trash to a new location.

If the Trash is already empty, stop using the computer immediately. Every new file, download, or even a web browser cache write can overwrite the deleted data. Power down the machine if you can, and boot from a separate recovery drive if you have one.

Choosing Recovery Software

When you need third-party software, look for these features:

  • Deep scan mode – scans raw disk sectors, not just the file table.
  • Preview before recovery – lets you see if the file is intact before paying or committing.
  • File type filters – JPEG, DOCX, PDF, etc., so you can narrow results.
  • Read-only operation – the software must not write to the same drive.

Free tools like Recuva (Windows) and PhotoRec (cross-platform) are widely used. For macOS, Disk Drill and EaseUS Data Recovery Wizard have free tiers. Install the software on a different drive than the one you’re recovering from, and save recovered files to yet another drive.

Common Problems and Misconceptions

A frequent misconception is that emptying the Trash permanently destroys the file. As explained, it only frees the space. The data remains until overwritten. Another common error is installing recovery software on the same drive you’re trying to recover – that installation itself can overwrite the very files you want back.

Another issue is partial recovery. Even if a file is recovered, it may be corrupted if part of it was overwritten. A photo might show a gray block, or a document might fail to open. Recovery software often marks such files as “damaged” or “unrecoverable.”

Also, cloud-synced folders (like OneDrive or Google Drive) behave differently. Deleting a file from a synced folder may remove it from your local Trash and put it in the cloud service’s own trash, which usually has a 30-day retention period. Check the cloud service’s recycle bin separately.

Comparing Trash Recovery vs. File History / Backup

Trash recovery is not a backup strategy. It is a short-term safety net. A proper backup (external drive, cloud, or a dedicated backup tool) protects against:

  • Accidental deletion after the Trash is emptied
  • Hard drive failure or corruption
  • Ransomware or other malware attacks
  • Physical damage to the device

If you have File History (Windows) or Time Machine (macOS) enabled, you can often recover older versions of files without any third-party software. These tools keep snapshots that go back much further than the Trash.

Costs and Safety Considerations

Free recovery tools usually cap the amount of data you can recover (e.g., 2 GB) or lack advanced features. Paid licenses range from roughly $20 to $100 for a single-use or subscription license. Professional data recovery services for physically damaged drives can cost hundreds to thousands of dollars, and they are only worth it for irreplaceable data.

Safety-wise, never attempt to recover data from a drive that is making clicking sounds or is not recognized by the OS – you may cause further damage. In such cases, power off and consult a professional. Also, be aware that recovery software cannot magically recreate data that has been overwritten; no tool can do that.

Frequently Asked Questions

Can I recover files after emptying the Recycle Bin?

Yes, if the drive is a traditional hard disk and the space hasn’t been overwritten. Use recovery software immediately and avoid writing new data to the drive. On SSDs, TRIM may have already erased the data, making recovery impossible.

How long do deleted files stay in the Trash?

Indefinitely, until you empty the Trash manually or the system runs a cleanup (some systems auto-empty after 30 days). The file remains in the Trash folder on the disk, taking up space, until you remove it.

Does emptying the Trash permanently delete files?

No. It removes the file’s directory entry, making the space available. The actual data remains until overwritten. On SSDs with TRIM, the data is erased shortly after, making recovery impossible.

What is the best free recovery tool?

Recuva (Windows) and PhotoRec (cross-platform) are popular free options. They both support deep scans and file type filtering. For macOS, Disk Drill’s free version allows limited recovery. Always install on a different drive than the one you’re recovering from.

Can I recover a file that was deleted from a USB flash drive?

Yes, but USB flash drives often have a controller that may overwrite data quickly. The same principles apply – stop using the drive immediately and use recovery software. Success is less likely than on a large hard disk.

Is it possible to recover files from a formatted drive?

Formatting a drive does not always erase all data. A quick format only removes the file system index. Recovery software can often reconstruct files from the remaining data. A full format or secure erase makes recovery impossible.

Related

Formula used
in t | Time since deletion | hours | 24 | 0 | 8760
in s | Storage size | GB | 256 | 1 | 2000
out p | Overwrite risk score | % | min(100, (t / 24) * 10 + (s / 256) * 20) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

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

More cards in this drawer

The whole Numbers and Powers drawer →