DIY Bicycle U-Lock




About: I love to do anything involving crafting things. Some of my greatest projects have been in metalworking and woodworking, but I'm always trying new things! I spend a lot of time in the garage, but not much of...

Having packed up all of my earthly belongings into the back of an ancient 1992 Ford Ranger, I clunked and bounced along the 689 miles between San Diego, CA, and Provo, UT. After almost 10 hours of driving, I pulled off the freeway and onto a city street, when my truck started making the most ungodly clanging noise I have ever heard. Then, one block from my destination, the engine seized and belched a thick black smoke, tainting the crisp Autumn air. For my first month in college, I was forced to travel solely by bike.

I soon realized that I had left my only bike lock back in San Diego, and would now have to go buy one. At the local bike shop, I was blown away to see the price tags: $30 for a decent cable lock, $20 for the cheap stringy kind that wouldn't hold up to a pair of safety scissors, or a whopping $45 for the strongest option--a hardened steel U-lock.

I knew that I wanted a U-lock, but I definitely didn't have the money for one, especially not with a hefty car repair bill to pay, so I looked for other options. As a student at Brigham Young University, I knew I would have access to the student machine shop--so I decided to make my own!

For under $20, anyone, even without access to a fancy machine shop, can make their own U-lock.

Step 1: Materials

Materials to buy:

32" of 1/2" diameter mild steel rod -- $8

7" of 3/16" x 1" mild steel bar -- about $3 (you might have to buy a full 3' piece)

A hardened steel lock of your choice (I show a simple combination lock, $2.50, but not very strong at all)


I had access to a full machine shop, so I ended up using:

-A milling machine with a 9/16" 4-fluted endmill (If you have a band saw, angle grinder, or even a hacksaw with a metal cutting blade, you could use that instead)

-A drill press with a 5/16" bit

-An acetylene torch (anything that could be used to heat metal until pliable, a propane torch would probably be fine)

-A vise/clamps and pliers, to bend the heated steel rod

With my truck out of commission, I had to strap it all to my bike and bike to the shop.

Step 2: Machine the Tip

Make the locking end:

First, you'll want to machine one of the ends to be the receptacle for the lock.

-Flatten out the last inch

-Cut it down until it is 1/4" thick

-Depending on the lock you use, you'll want to adjust the hole size. My lock has a 1/4" shackle, so I drilled a 17/32" hole

Step 3: Shape the U

Now for the fun part: heating and bending the steel!

To set up your jig:

-Find something circular that you can bend the pipe around. I used a 5 1/2" steel pipe, this resulted in a 6" wide U-lock.

-Attach your "form" (the pipe) to your table using heat-resistant clamps.

-I put another clamp on top of the pipe to act as a guide.

-Mark the halfway point of your rod. I scored it with an awl. This can be lined up with your "guide clamp"

Heat it and bend it:

Now you're ready to heat the rod and bend it. Aim to heat a 10" section centered on your halfway mark--this will give you enough to bend it comfortably.

CAUTION! Make sure to bend the rod so that the bend is parallel to the machined end (see pictures).

Once you have a good U-shape, it's time to bend the angled portion on the other end.

-Clamp your U to the table (let it cool first!)

-Heat the last 2 inches of the un-machined end

-Bend the last 1" to a 45 degree angle.

CAUTION! Make sure to leave space so that your cross-bar (step 4) can sit flat. Start your 1" bend above where the cross-bar will want to rest.

Don't worry about having it in a perfect U shape, because that can still be adjusted after it cools.

Step 4: Machine the Cross-Bar

While letting the U shape cool, you can machine the cross-bar, the piece that holds it all together.

Cut the length:

You want the cross bar to be about 1-1.5" longer than your U is wide. I made a 5" wide U, so my cross bar is about 6" long.

Drill the round hole:

You'll want to make the round hole 17/32" or larger, just barely bigger than your 1/2" diameter rod. If you don't have bits that go by 1/32 of an inch, a 9/16" bit should work just fine.

Center the hole with respect to the width of your bar, and position it about 3/8" away from the end.

Machine the channel (elongated hole):

The trickier part is the elongated hole. It's not essential that the hole is elongated, it could be just another matching hole, but then the crossbar will have free movement up and down your U-Piece. An elongated hole allows the cross bar to sit comfortably on the end of the U-piece, without much jiggling around.

I used a 3/8" endmill to bore out the elongated hole, but if you don't have access to a milling machine, here's what you might try:

-Drill two 3/8" holes with their centers about 7/16" apart

-Use a scroll saw with a metal-cutting blade in it to knock out the center piece

Adjust the U piece to match the crossbar:

Once you have the crossbar made, you can manually bend the "forks" of the U-piece so that they go nicely into the holes of the cross bar. It's a little tough to bend, but can be done by hand.

Step 5: Polish It All Mighty Fine

Rough the buff:

First, buff out all the deeper scratches with high-grit sandpaper or emery cloth.


Then, use a buffing wheel and compound to make it look fancy.

With the awkward shape of the U piece, it's sometimes hard to polish the inner surfaces. One approach is to feed the U into the wheel, which allows you to reach almost every point on the inner surface.

Step 6: Lock Up That Bike!

Travel the world:

With your lock custom made to the right size, you can lock up anywhere!

If you do have concerns about thieves, a simple solution that makes it look just like your standard U-lock is to place your helmet over the locking mechanism. Thieves know to not even try to bust a U-lock, so your bike will still be the last on their list.

As for me, my truck is back up and running, but now I have no reservations leaving my bike out in the open. With 4 months of usage now, my U-lock is still going strong!


The main weakness of this lock is it's lack of weather resistance--it rusts fairly quickly when exposed to water. I don't have much experience with weatherproofing metal, so please comment and give suggestions on weatherproofing!



    • Tape Contest

      Tape Contest
    • Trash to Treasure

      Trash to Treasure
    • Epilog X Contest

      Epilog X Contest

    13 Discussions


    5 months ago

    Heat shrink tubing to prevent rust, and polish the metal to make it extra slippery for any thief trying to cut it with a hacksaw, it'll feel harder to cut because the blade will slip right off!


    2 years ago

    corrosion aside: what a beautiful piece!

    on corrosion: just use "stainless" 1.4301-type Steel
    it's harder to weld, bend and drill – but that propably also makes it a little more resistant to saws and bolt cutters ;)
    other than that, you could burnish it (there are burnishing pastes available for that) or at least wax it from time to time.
    for additional strength, you might even find a workshop that quenches (i.e. hardens) it in return for a mite.


    3 years ago

    Neat! You can solve the corrosion problem using a length of heat schrink tube- it will also soft the lock damaging the bike's paint job


    3 years ago

    The reason why those locks are so pricey is (should be) heat treated. That mild steel is soft enough to be cut with a pair of bolt cutters that are small enough to be easily hidden and walked around with unnoticed. The combo lock as already explained can easily be overtaken.

    This might be better than nothing but I wouldn't put much faith in it for very long. Lock it up with a bunch of bikes that have cheaper looking lock setups.

    1 reply

    Reply 3 years ago

    Agreed. Find an auto wrecker and salvage a sway bar or a coil spring. Heat it up to manipulate to the shape that you want, then heat treat it. Use a piece of leaf spring for the flat bar, just anneal it first, then flatten it, drill it and harden it too. Once your pieces have been hardened, they need to be tempered to reduce the brittleness.

    If you have access to anything like 5160 steel (new) that is mostly the steel used in what I mentioned above.


    3 years ago

    a classic, ancient in fact, weather proofing is copper plating, just disolove copper sulfate crystals in distilled water and add an acid then paint the metal, you can age it with vinager or leave it shiny, no matter how rusty the copper gets the copper will passivate the iron.


    3 years ago

    Great Job!!!! Weather proofing it shouldn't be too hard. You can use Krylon or Rustoleum paint. I've used Rustoleum primers and then covered that up with Plasti-Dip on past projects. The Plasti-Dip does a good job at offering a "soft" covering to protect other surfaces. Also, you can get truck "bed liner" coatings in small spray cans (sold for repairs and touch-up) at auto parts stores. This stuff is tough and indestructable, but not that attractive.


    3 years ago

    Seems like if that flat bar is deformed, you might be able to get it past the bent end.

    1 reply

    Reply 3 years ago

    That is true, but, with a 17/32" hole drilled and a 1/2" rod running through it, you would have to deform the bar so that it itself is at a 45 degree bend. It's not impossible, but it definitely is hard to deform it to that point.


    3 years ago

    You should upgrade the lock.

    A security system is only as strong as its weakest link, and combination locks are generally regarded as pretty weak. The algorithm for the combination can often be guessed in 8 tries or less, you can work it open with a shim made from an aluminum can, or you can just smack it with your shoe to open it, as we used to do in high school gym class.

    It sounds like you are hoping that a thief will pass you over in favor of more low hanging fruit, but your lock is distinctively unique- they won't mistake it for a "real" U lock. Once they take more than a passing glance, it will be clear that your combination lock IS the lowest fruit.

    1 reply

    Reply 3 years ago

    Anyone who makes this U-Lock should definitely upgrade the lock! I bought a masterlock because it was on sale for $2.50, not because it'll be any more secure than your typical $5 bike lock. I plan on getting a new one once I've got the budget for it!


    3 years ago

    That's a pretty sleek-looking lock.

    As far as weatherproofing, a cheap route could be to spray it with some lacquer good enamel paint, but that would chip off pretty easily. Powder coating would be the ideal choice, imo.

    Or just leave it as is and accept a little rust ;)