SDE for Mac: FEMA's Substantial Damage Estimator, Ported and Extended
An unofficial Mac version of FEMA's Substantial Damage Estimator, now at version 3.0. The damage calculation was ported from the decompiled Windows program and matched against the decompiled engine on 41,868 building configurations. The app adds imports from permit systems, an editable map, review and compliance tracking, owner letters, and a phone form for inspectors.

- Role
- Solo. Decompilation, the calculation port and its test suite, the app and its redesign, the imports, map, review tools, letters and phone form, and the documentation
- Timeframe
- October 2026 · Three weeks, five releases
- Location
- Any National Flood Insurance Program community
- Updated
- Tools
- C#
- .NET 10
- Avalonia
- Mapsui
- ILSpy
- SQLite
- xUnit
- MCP
- Claude Code, used in 9 projects
The problem
After a flood, communities in the National Flood Insurance Program assess damage to buildings in Special Flood Hazard Areas. If restoring a building would cost 50 percent or more of its market value before the flood, it is considered substantially damaged and must be brought into compliance with current local floodplain requirements. FEMA’s Substantial Damage Estimator, SDE 3.0, is used for this assessment, but it only runs on Windows.
For floodplain administrators, inspectors, and consultants working on Macs, that can mean borrowing a PC, running a virtual machine, or moving numbers between SDE and spreadsheets. I wanted a Mac version that kept the calculation and file formats compatible with FEMA’s program.
The source code and releases are on GitHub.
Approach
Porting the calculation. I used ILSpy to decompile FEMA’s .NET desktop program into readable C#. I kept that output as a reference and ported the damage calculation line by line to .NET 10, with FEMA’s cost and depreciation tables embedded. For comparison, I compiled the original decompiled engine without changes. The port was checked against it on 31,500 residential and 10,368 non-residential building configurations, plus edge cases. Every output in that comparison matched to the last decimal. The worked examples shown in FEMA’s manual matched to the cent.
File compatibility. The app imports SDE export folders, SDE 2.x folders, and FEMA’s Access databases. Its export folders use the field order and types expected by FEMA’s SDE. The format is intended for sharing with FEMA, state offices, and counties using the Windows program.
The Mac interface. I used Avalonia to build the interface for Apple silicon and Intel. An assessment has eight sections, listed in the sidebar with a count of the fields left to check in each. A panel on the right shows the percent damaged, the costs, and the fields still to check as you enter data. Each field’s ? says what to enter and which page of FEMA’s manual covers it.
Tools for recovery work
Version 1.0 ported the calculation. Version 1.5 added Accela-style permit imports and a submission folder. Version 2.0 added tools for managing multiple assessments. Version 2.5 added the work around a whole event, and version 3.0 redesigned the app. These are SDE for Mac’s own version numbers, separate from FEMA’s SDE 3.0.
Version 2.0 added:
- Data imports. Import inspection or parcel data from permit systems, assessor rolls, or spreadsheets. Match records by record ID, parcel, or address, and link a folder of photos to structures. Look up coordinates and the flood zone, panel, and base flood elevation from FEMA’s National Flood Hazard Layer, with confirmation before applying changes.
- Phone form. Inspectors can find or add structures, fill in fields, and take photos on a phone connected to the office Wi-Fi. Pairing uses a QR code or PIN.
- Batch editing. Sort and filter structures, save views, change one field across multiple structures, search and replace values, or copy from a similar building.
- Results and reports. View structures on a map colored by result and an event summary with a PDF. Export GeoPackage or GeoJSON files for GIS, generate owner letters from editable Word templates, and work with substantial improvement determinations and appeals with contractor bids.
- Review and backups. Review statuses can lock finished assessments. Other features include edit history, undo, Recently deleted, and automatic daily backups.
Working through an event
Version 2.5 added:
- Events. Keep each disaster as an event with its name, DR number, and dates. Choosing one limits Structures, the map, the summary, exports, letters, and web maps to that event.
- The map. Rebuilt on the Mapsui map engine, with USGS and OpenStreetMap backgrounds and FEMA’s flood zones as an overlay. Add layers from Shapefiles, GeoJSON, GeoPackages, CSV files, and ArcGIS web addresses. Then select, measure, edit your own layers, copy values onto structures, print to PDF, or keep an area offline.
- Field teams. Make teams, assign structures, put each team’s list in driving order, and print route sheets. Work packages take assessments to a Mac in the field without a connection and check them back in at the office.
- Review. A queue of assessments waiting for review, quality checks that flag likely mistakes, and reviewers’ comments with replies. Before an export or a submission folder, the app asks about open errors.
- Compliance. A case for each substantially damaged structure or substantial improvement, with its path, permit, deadline, Increased Cost of Compliance claim, elevation certificate, and final inspection.
- Field data. Estimate flood depth from high-water marks or a water-surface grid, with a confidence and a reason for every structure, for you to review. Read values from FEMA’s fillable elevation certificate, and mark up photos without changing the originals.
- Web maps. Make a folder with a web page of structures on a map, for the office or the public. The public version shows counts in grid squares, with no owners, and with addresses hidden or cut to the block.
- AI assistants. A built-in MCP server lets Claude and other assistants find structures, read and explain assessments, run the quality checks, and make reports. They can only change the database if you allow it. Every change is recorded and can be reverted, Final and Letter sent assessments stay locked, and nothing can be deleted.
Versions 2.0 and 2.5 keep the ported calculation and SDE export format unchanged. The map, letters, appeals, and cumulative damage records are handled separately. Events, layers, photo markup, certificates, assignments, review comments, and compliance cases live in SDE for Mac’s own tables and are never exported to FEMA.
A Mac app
Version 3.0 is a redesign. SDE for Mac now looks and works like a Mac app rather than a web page. It uses the Mac’s own type and controls, and buttons, selection, and links follow the accent color set in System Settings. The sidebar is a source list with smart groups and counts, the toolbar switches between List, Map, and Summary, and an inspector shows the selected row. The rows of big-number cards and colored status pills are gone: a status is now a colored dot and a word.
FEMA’s calculation, the file formats, and the database are unchanged. Version 3.0 opens databases from every earlier version, and 2.5 can still open a database that 3.0 has used. The full list is in What’s new in 3.0.
Testing
As of version 3.0, the suite has 1,232 automated tests, up from 175 at version 1.0, 237 at 1.5, and 577 at 2.0. All 1,232 passed on macOS with none skipped. That run included the tests that compare against FEMA’s own installer, which only run where it is available.
The tests cover calculation parity, off-screen rendering of every page and assessment step in light and dark, and VoiceOver labels for every input. Version 3.0 added a check that text reaches a 4.5:1 contrast ratio or better in both themes across eight Mac accent colors. The packaged app has also been driven through macOS accessibility and timed on an event with a thousand assessments.
Notes and limitations
- SDE for Mac is an independent, unofficial project. FEMA does not produce, endorse, or support it. Local floodplain administrators remain responsible for every determination.
- As of version 3.0, I still haven’t checked the port against FEMA’s SDE running on Windows because I haven’t had a Windows machine. That includes importing these export folders into FEMA’s program. The repository includes a cross-check kit with nine test structures, intended to take about an hour for someone with access to one.
- The imports have only been tested on synthetic files, not real exports from a permit system. The test report also lists the phone form on a real phone, the map with live tiles, live online services, real camera photos, and the File and View menus as not covered.
- The Intel build has been run under Rosetta, not on an Intel Mac.
- The app needs macOS 12 or later. It isn’t signed with an Apple Developer ID, so macOS asks you to approve it the first time you open it.
- Not ported: webcam capture, FEMA’s image editor, and spell check. Photo markup is a
separate tool added in 2.5. FEMA’s Enterprise Import screen still doesn’t read old
.xlsworkbooks, but the newer inspection and parcel import does. - The screenshots on this page use made-up sample data.
- The app is released under the MIT license, with Apple silicon and Intel builds and checksums for each release.